Maybe

=SUMIF(A1:A3,"Lion", B1:B3)

change Lion for other values as required