Marcy bottles 17 gallons of root beer and 12 gallons of punch. She sells her drinks in quart bottles. How many bottles does she need?