document.write( "Question 839238: A woman is driving 22 miles to work and dropping her daughter at daycare. 1st part of trip is 6 miles less than 2nd part. How long is each part? Create 2 equations in two variables to solve. \n" ); document.write( "
Algebra.Com's Answer #505621 by alicealc(293)\"\" \"About 
You can put this solution on YOUR website!
1st part = x
\n" ); document.write( "2nd part = y\r
\n" ); document.write( "\n" ); document.write( "x + y = 22
\n" ); document.write( "x = y - 6\r
\n" ); document.write( "\n" ); document.write( "substitute the second equation into the first equation:
\n" ); document.write( "y - 6 + y = 22
\n" ); document.write( "2y - 6 = 22
\n" ); document.write( "2y = 22 + 6
\n" ); document.write( "2y = 28
\n" ); document.write( "y = 28/2 = 14
\n" ); document.write( "x = y - 6 = 14 - 6 = 8\r
\n" ); document.write( "\n" ); document.write( "so, the 1st part is 8 miles long, and the 2nd part is 14 miles long
\n" ); document.write( "
\n" );