Answer: The best is to buy 2 gallons of milk, because it is the cheapest solution.
Explanation:
If you want to compare the prices of these sizes of milk just count how much would cost the same capacity of milk, example 2 gallons of milk. Then it is easy to compare.