Answer :

31 quarts, because there are 4 quarts in a gallon so if he has 8 gallons so thats equivalent to 32 quarts and he didnt use one quart so thats 31 used and 1 not used