We have 10 cases of soda. If each case has 24 cans and each can holds 12 fluid ounces, we calculate how many fluid ounces of soda we purchased:

But we need to know how many gallons of soda we purchased. Using the following conversion rules:

Then, we multiply the first one by 360 on both sides to obtain 2880 fluid ounces:

Finally, we multiply the second conversion rule by 22.5 to obtain 360 cups:

Answer: 22.5 gallons