If 16 ounces are in 24 gallons then there are 1.5 ounces in a gallon 16 ounces don't equal 24 gallons. 128 U.S. Fluid ounces equal 1 U.S. liquid gallon. There would be 3072 fluid ounces in 24 gallons.

A gallon is 128 ounces, half gallon is 64 ounces, quart is 32 ounces. A cup is usually 8 ounces. Hence a quart is 4 cups. So the number of quarts in 24 cups is 24/4 = 6 quarts.