Answer:
There are 24 cans of Pepsi, and 20 cans of Root Beer.
Note that the ratio states Root Beer first, then Pepsi. Set the ratio:
Root Beer: Pepsi = 20:24
20:24 is your unsimplified answer.
Most likely they will be asking you to simplify. Divide common factors from both numbers:
(20:24)/(4/4) = 5:6
5:6 is your simplified answer.
~