First, recall the following conversions between units:
[tex]\begin{gathered} 1\text{ gallon }=4\text{ quarts} \\ 1\text{ gallon }=8\text{ pints} \\ 1\text{ gallon }=16\text{ cups} \\ 1\text{ gallon }=128\text{ ounces} \end{gathered}[/tex]
Convert the capacity of each container available in the store to gallons:
2 pints of milk
[tex]2\text{ pints}=2\text{ pints}\times\frac{1\text{ gallon}}{8\text{ pints}}=0.25\text{ gallons}[/tex]
2 quarts of orange juice
[tex]2\text{ quarts}=2\text{ quarts}\times\frac{1\text{ gallon}}{4\text{ quarts}}=0.5\text{ gallons}[/tex]
16 cups of chocolate milk
[tex]16\text{ cups}=16\text{ cups}\times\frac{1\text{ gallon}}{16\text{ cups}}=1\text{ gallon}[/tex]
32 ounces of lemonade
[tex]32\text{ ounces}=32\text{ ounces}\times\frac{1\text{ gallon}}{128\text{ ounces}}=0.25\text{ gallons}[/tex]
Add up all the capacities to find the volume of beverages of buying 1 of each container:
[tex]\begin{gathered} 2\text{ pints}+2\text{ quarts}+16\text{ cups}+32\text{ ounces} \\ =0.25\text{ gallons}+0.5\text{ gallons}+1\text{ gallon}+0.25\text{ gallons} \\ =2\text{ gallons} \end{gathered}[/tex]
If Julius buys 2 containers of each beverage, then the amount of gallons will be twice the amount of buying 1 container of each beverage:
[tex]2\times2\text{ gallons}=4\text{ gallons}[/tex]
Therefore, the amount of gallons of beverages that Julius bought is 4.