document.write( "Question 282189: How do I solve for this using substitution.
\n" ); document.write( "5x+8y=18
\n" ); document.write( "x=6-2y
\n" ); document.write( "

Algebra.Com's Answer #204910 by Mathematicians(84)\"\" \"About 
You can put this solution on YOUR website!
Substitution is pretty cool\r
\n" ); document.write( "\n" ); document.write( "Check this out:\r
\n" ); document.write( "\n" ); document.write( "\"5x+%2B+8y+=+18\"
\n" ); document.write( "and
\n" ); document.write( "\"x+=+6-2y\"\r
\n" ); document.write( "\n" ); document.write( "are you two equations, we know what x is equal, so look at these next two things:\r
\n" ); document.write( "\n" ); document.write( "\"5x+%2B+8y+=+18\"
\n" ); document.write( "\"5%28highlight%286-2y%29%29+%2B+8y+=+18\"\r
\n" ); document.write( "\n" ); document.write( "Look in the highlighted area, see how you just replace x with 6 - 2y, we did this because that is what x was equal to in the second equation\r
\n" ); document.write( "\n" ); document.write( "\"5%286-2y%29+%2B+8y+=+18\"
\n" ); document.write( "\"30+-+10y+%2B+8y+=+18\" distribute
\n" ); document.write( "\"30+-+2y+=+18\" combine like terms
\n" ); document.write( "\"-2y+=+-12\" subtract 30 on both sides
\n" ); document.write( "\"y+=+6\" divide by -2 on both sides\r
\n" ); document.write( "\n" ); document.write( "Time to solve for X\r
\n" ); document.write( "\n" ); document.write( "\"x+=+6-2y\" we know y = 6
\n" ); document.write( "\"x+=+6-2%286%29\"
\n" ); document.write( "\"x+=+-6\"\r
\n" ); document.write( "\n" ); document.write( "Your two answers \"highlight%28x+=+-6%29\" \"highlight%28y+=+6%29\"
\n" ); document.write( "
\n" );