Setting up an equation relating cars and hours, you have cars painted/hours: . Solving the equation for h yields 5h=6 so h=1.2, or 1 hour and 12 minutes.