Contestants in a dance-a-thon rest for the same amount of time every hour. A couple rests for 40 minutes in 8 hours. How long did they rest in 9 hours?

x/9 = 40/8

x = 9/8 * 40 = 45