Joe rented a bike from Mike's Bikes for $18 plus $5 per hour. If Joe paid a total of $38, how many hours did he rent the bike?