The ratio of birds and hamsters is 5:4.
Let x be a number such that number of birds and hamsters are 5x and 4x.
If x=6, then number of birds will be 30 and hamsters will be 24.
Hence
B. 24 hamsters and 30 birds
this the correct combination that could the pet store have.