Oceanside bike rental shop charges 18 dollars plus 6 dollars an hour for renting a bike. Jessica paid 42 dollars to rent a bike. How many hours did she pay to have the bike checked out?