A rock gym charges $5 to rent equipment and $2 per hour to climb. Logan spent $9. 50. How many hours did he spend climbing?.