Bill car needed work. The mechanic charged him $160 for parts plus $38 per hour for labor. If the bill totaled $300,how many hours of labor were required?