document.write( "Question 235792: how to do substitution and try to get one solution x+3y=12 x-y=8 \n" ); document.write( "
Algebra.Com's Answer #173601 by Stitch(470)\"\" \"About 
You can put this solution on YOUR website!
Given:
\n" ); document.write( "Equation 1: \"X%2B3Y=12\"
\n" ); document.write( "Equation 2: \"X-Y=8\"
\n" ); document.write( "---------------------------
\n" ); document.write( "Solution:
\n" ); document.write( "First solve equation 2 for one of teh variables, I picked X.
\n" ); document.write( "\"X-Y=8\" Add Y to both sides
\n" ); document.write( "\"X+=+8%2BY\"
\n" ); document.write( "Now plug (8 + Y) into equation 1 for X
\n" ); document.write( "\"X%2B3Y=12\"
\n" ); document.write( "\"%288+%2B+Y%29%2B3Y+=+12\" Combine like terms
\n" ); document.write( "\"8+%2B+4Y+=+12\" Subtract 8 from both sides
\n" ); document.write( "\"4Y+=+4\" Divide both sides by 4
\n" ); document.write( "\"Y+=+1\"
\n" ); document.write( "Now plug 1 into equation 2 for Y to find X
\n" ); document.write( "\"X-Y=8\"
\n" ); document.write( "\"X-1=8\" Add 1 to both sides
\n" ); document.write( "\"X+=+9\"
\n" ); document.write( "---------------------------
\n" ); document.write( "Check your answer:
\n" ); document.write( "Using plug Y = 1 & X = 9 into equation 1
\n" ); document.write( "\"X%2B3Y=12\"
\n" ); document.write( "\"9+%2B+3%2A1+=+12\" Simplify
\n" ); document.write( "\"9+%2B+3+=+12\"
\n" ); document.write( "\"12+=+12\"
\n" ); document.write( "
\n" );