Divide the number of miles by the number of gallons.