James recently hired a plumber to do some necessary work. On the final bill, James was charged a total of $593. $365 was listed for parts and the rest for labor. If the hourly rate for labor was $76, how many hours of labor was needed to complete the job?

(A) First write an equation you can use to answer this question. Use x as your variable and express any percents in decimal form in the equation.

The equation is ______

(B) Solve your equation in part (A) to find the number of labor hours needed to do the job.

Answer: The number of labor hours was _____