
Bradford T. answered 11/12/21
Retired Engineer / Upper level math instructor
If m = the miles per gallon and t = the capacity of the gas tank in gallons:
x = t-d/m
For example, if t = 16 gallons and the mileage of the vehicle is 30 miles per gallon.
x = 16-d/30