will you be using filters, and can values appear twice?

=SUMIF(B3:B10,"Pears",C3:C10) if no repetition

=INDEX(C3:C10,MATCH("Pears",B3:B10,0)) first match

last match
=LOOKUP(2,1/("Pears"=B3:B10),C3:C10)

what do you want to achieve?