Mandy took a ride from the restaurant to his house. The ride cost an initial fee of $5 plus $9 per hour. The total cost of the trip was $32, not including a tip. How many hours did it take Mandy from the restaurant to her house?