For the quarts to cups:
First, you need to figure out how many cups are in 1 quart. This is 4 cups = 1 quart.
If you have 4 cups in one quart then you need to multiply 4 cups by 5 quarts which equals 20 cups.
For the cups to gallons, you first need to find out how many cups are in 1 gallon. This is 16 cups = 1 gallon.
If you have 16 cups in 1 gallon then you will need to multiply 48 cups by 16 to find out how many gallons you will have which equals 3 gallons.
Hope this helps.