document.write( "Question 346965: A salesperson purchased an automobile that was advertised as averaging 25 mi/gal in the city and 40 mi/gal on the highway. 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? \n" ); document.write( "
Algebra.Com's Answer #248123 by haileytucki(390)\"\" \"About 
You can put this solution on YOUR website!
A recent sales trip that covered 1800 miles required 51 gallons of gasoline.
\n" ); document.write( "Assuming that the advertised mileage estimates were correct, how many miles were driven in the city?
\n" ); document.write( "====
\n" ); document.write( "Let x be the city miles.
\n" ); document.write( "Then 1800-x are the highway miles.
\n" ); document.write( "---
\n" ); document.write( "distance/miles per gallon = gallons
\n" ); document.write( "-----
\n" ); document.write( "Equation:
\n" ); document.write( "gallons + gallons = 51 gallons
\n" ); document.write( "x/25 + (1800-x)/40 = 51 gallons
\n" ); document.write( "---
\n" ); document.write( "Multiply thru by 25*40 to get:
\n" ); document.write( "40x + 25*1800 - 25x = 51*25*40
\n" ); document.write( "15x = 6000
\n" ); document.write( "x = 400 (miles of city driving)
\n" ); document.write( "
\n" ); document.write( "
\n" );