Solving a decimal word problem using a linear equation of the form Ax + B = C

Alan rented a truck for one day. There was a base fee of $18.99, and there was an additional charge of 80 cents for each mile driven. Alan had to pay $239.79 when he returned the truck. For how many miles did he drive the truck?​