A painter charges $35 per hour for labor plus $40 for a ladder rental when he paints a house. The customer provides the paint. The total charge to paint a customer's house was $950. How many hours did the painter spend painting this house?