document.write( "Question 395422: a salesperson purchased a car that avg 25mpg in the city and 40 mpg on highway. A recent sales trip that covered 1800 miles required 51 gal of gas. Assuming the advertised mileage estimates were correct, how many miles were driven in the city? \n" ); document.write( "
Algebra.Com's Answer #280615 by jrfrunner(365)\"\" \"About 
You can put this solution on YOUR website!
you have two unknowns: C=gallons used in city driving and H=gallons used in highway driving
\n" ); document.write( "so you will need two equations to solve the two unknowns
\n" ); document.write( "--
\n" ); document.write( "eq1 gallons used: C+H=51
\n" ); document.write( "eq2 miles driven: 25*C+40*H=1800
\n" ); document.write( "-
\n" ); document.write( "solve eq1 for H: H=51-C and substitute in eq2
\n" ); document.write( "25*C+40*(51-C)=1800 solve for C
\n" ); document.write( "25C-40C+2040=1800
\n" ); document.write( "2040-1800=15C
\n" ); document.write( "C=240/15=16gallons used
\n" ); document.write( "--
\n" ); document.write( "they want to know how many miles were driven in the city\r
\n" ); document.write( "\n" ); document.write( "25*C=25*16=400 miles
\n" ); document.write( "
\n" );