document.write( "Question 2157: Please solve for X, Y, and Z in the 3 variable equation.\r
\n" ); document.write( "\n" ); document.write( "x + 2y + z =6
\n" ); document.write( "x + y =4
\n" ); document.write( "3x + y + z =8
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #879 by matthew_sessoms(39)\"\" \"About 
You can put this solution on YOUR website!
Lets number each equation so we can refer to each one with only a number (instead of writing the whole equation).
\n" ); document.write( "

\n" ); document.write( "1) x + 2y + z = 6
\n" ); document.write( "2) x + y = 4
\n" ); document.write( "3) 3x + y + z = 8
\n" ); document.write( "

\n" ); document.write( "Now lets eliminate 1 (one) variable from from all the equations. Lets start with only 2 equations at a time. I will eliminate x from #1 & #2 first.
\n" ); document.write( "

\n" ); document.write( "(-1) * #1 = -x - 2y - z = -6
\n" ); document.write( " #2 = x + y = 4
\n" ); document.write( " -------------------
\n" ); document.write( "

\n" ); document.write( "Then add these, and we will get equation #4, like this
\n" ); document.write( "#4 = -y - z = -2
\n" ); document.write( "

\n" ); document.write( "Now, lets eliminate the SAME variable (x) from equation #1 & #3 (since before, we eliminated x from #1 & #2)
\n" ); document.write( "

\n" ); document.write( "(-3) * #1 = -3x - 6y - 3z = -18
\n" ); document.write( " #3 = 3x + y + z = 8
\n" ); document.write( " ---------------------
\n" ); document.write( "

\n" ); document.write( "Add these, and we get equation #5, which is
\n" ); document.write( "#5 = -5y - 2z = -10
\n" ); document.write( "

\n" ); document.write( "All we have now is 2 equations with 2 variables (#4 & #5). We can use \"substitution to solve for y in #4 and plug it in #5.
\n" ); document.write( "

\n" ); document.write( "#4 = y = 2 - z
\n" ); document.write( "

\n" ); document.write( "Now plug in #4, which we solved for y, into #5 and simplify.
\n" ); document.write( "

\n" ); document.write( "-5(2 - z) - 2z = -10
\n" ); document.write( "z = 0
\n" ); document.write( "

\n" ); document.write( "Now, plug in z=0 in either #4 or #5. I chosed #4 because it looks easier.
\n" ); document.write( "

\n" ); document.write( "-y - 0 = -2
\n" ); document.write( "y = 2
\n" ); document.write( "

\n" ); document.write( "Now, since we have y & z, we can plug these values into either of the original equations (#1, #2, or #3). I chosed #1 because it looks easier.
\n" ); document.write( "

\n" ); document.write( "x + 2(2) + 0 = 6
\n" ); document.write( "x = 2
\n" ); document.write( "

\n" ); document.write( "Now we have our final answer, (2, 2, 0), as in (x, y, z).
\n" ); document.write( "

\n" ); document.write( "CHECK
\n" ); document.write( "#1. 2 + 2(2) + 0 = 6
\n" ); document.write( "#2. 2 + 2 = 4
\n" ); document.write( "#3. 3(2) + 2 + 0 = 8
\n" ); document.write( "MS
\n" ); document.write( "
\n" );