Samantha recently hired a contractor to do some necessary work. On the final bill, Samantha was charged a total of $970. $430 was listed for parts and the rest for labor. If the hourly rate for labor was $36, how many hours of labor was needed to complete the job?