The total cost of repairing a car is the sum of the amount paid for parts and the amount paid for labor. You paid $78 for parts and $45 for each hour of labor. The total cost to repair the car was $168. How many hours did it take to repair the car?