document.write( "Question 230685: Carole's car averages 13.4 miles per gallon in city driving and 25.7 miles per gallon in highway driving. If she drove a total of 522.8 miles on 28 gallons of gas, then how many of the gallons were used for city driving? \n" ); document.write( "
Algebra.Com's Answer #170864 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"a\" = miles of hwy driving
\n" ); document.write( "Let \"b\" = miles of city driving
\n" ); document.write( "given:
\n" ); document.write( "Total gas used = 28 gallons
\n" ); document.write( "(1) \"a%2F25.7+%2B+b%2F13.4+=+28\"
\n" ); document.write( "(2) \"a+%2B+b+=+522.8\"
\n" ); document.write( "This is 2 equations with 2 unknowns, so
\n" ); document.write( "it's solvable
\n" ); document.write( "(1) \"a%2F25.7+%2B+b%2F13.4+=+28\"
\n" ); document.write( "Multiply both sides by \"25.7%2A13.4+=+344.38\"
\n" ); document.write( "(1) \"13.4a+%2B+25.7b+=+28%2A344.38\"
\n" ); document.write( "(1) \"13.4a+%2B+25.7b+=+9642.64\"
\n" ); document.write( "Multiply both sides of (2) by \"13.4\"
\n" ); document.write( "and subtract from (1)
\n" ); document.write( "(1) \"13.4a+%2B+25.7b+=+9642.64\"
\n" ); document.write( "(2) \"-13.4a+-+13.4b+=+-7005.52\"
\n" ); document.write( "\"12.3b+=+2637.12\"
\n" ); document.write( "\"b+=+214.4\"
\n" ); document.write( "214.4 gallons were used for city driving
\n" ); document.write( "check answer:
\n" ); document.write( "\"a+%2B+b+=+522.8\"
\n" ); document.write( "\"a+%2B+214.4+=+522.8\"
\n" ); document.write( "\"a+=+522.8+-+214.4\"
\n" ); document.write( "\"a+=+308.4\"
\n" ); document.write( "and
\n" ); document.write( "\"a%2F25.7+%2B+b%2F13.4+=+28\"
\n" ); document.write( "\"308.4%2F25.7+%2B+214.4%2F13.4+=+28\"
\n" ); document.write( "\"12+%2B+16+=+28\"
\n" ); document.write( "\"28+=+28\"
\n" ); document.write( "OK\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );