Let's name the mileage m.
Say John traveled two miles. He had to pay $18.99 for the base charge, plus $.75(2), which came to $1.50, for a total of $20.49.
However, we are given his total and instructed to calculate the miles.
18.99 + .75m = 199.74
-18.99 -18.99
.75m = 180.75
.75 .75
m = 241
John then made a 241-mile drive.
Hope this is useful!