A car repair shop charged $80 per hour for labor and $210 for the parts of a car. If the total cost of repair for the car was $490, how many hours did it take to repair the car?