Question 346965
A recent sales trip that covered 1800 miles required 51 gallons of gasoline. 
Assuming that the advertised mileage estimates were correct, how many miles were driven in the city?
====
Let x be the city miles.
Then 1800-x are the highway miles.
---
distance/miles per gallon = gallons
-----
Equation:
gallons + gallons = 51 gallons
x/25 + (1800-x)/40 = 51 gallons
---
Multiply thru by 25*40 to get:
40x + 25*1800 - 25x = 51*25*40
15x = 6000
x = 400 (miles of city driving)