Molly is painting her bedroom walls, and the paint costs $24 per gallon. How much does the paint cost per quart?