Short Answer: 5 cups.
Long Answer:
To start, I'll convert everything to cups, so the unit will be consistent.
1 gallon -> 16 cups
2 quarts -> 8 cups
3 cups -> 3 cups
After this, you just subtract 16 by 8, and then subtract that by 3. That gives you 5 cups in total.