A bicycle shop charges customs $20 plus $4.50 per hour to rent a bicycle. Rylie paid $47 to rent a bicycle. For how many hours did Rylie rent the bicycle?
a) 5 hours
b) 6 hours
c) 7 hours
d) 8 hours