document.write( "Question 335897: My question is how to substitute x+y to 4x+2y. the problem is: There are 25 heads and 100 legs,x chicken(2 legs) and y pigs(4 legs). The answer is 25 pigs but I need equations to get to 1x=25 here is what I have so far
\n" ); document.write( "\"system%28x%2By=25%2C+4x%2B2y=100%29\"
\n" ); document.write( "

Algebra.Com's Answer #240891 by Edwin McCravy(20059)\"\" \"About 
You can put this solution on YOUR website!
\r\n" );
document.write( "It is obvious that they all have to be pigs with no chickens,\r\n" );
document.write( "since 100=4*25, there are 4 times as many legs as there are heads,\r\n" );
document.write( "and of course there are 25 pigs and no chickens.  So this is a strange\r\n" );
document.write( "problem.  I hope the problem didn't state that there had to be some \r\n" );
document.write( "chickens, since there aren't any.  But anyway, we'll go through what \r\n" );
document.write( "was giving you trouble.\r\n" );
document.write( "\r\n" );
document.write( "\"system%28x%2By=25%2C+4x%2B2y=100%29\"\r\n" );
document.write( "\r\n" );
document.write( "Solve the first equation for either letter.  I will\r\n" );
document.write( "arbitrarily choose to solve the first equation for y\r\n" );
document.write( "\r\n" );
document.write( "\"x%2By=25\"\r\n" );
document.write( "\"y=25-x\"\r\n" );
document.write( "\r\n" );
document.write( "Next substitute \"%2825-x%29\" for y in the second equation:\r\n" );
document.write( "\r\n" );
document.write( "\"4x%2B2%2825-x%29=100\"\r\n" );
document.write( "\"4x%2B50-2x=100\"\r\n" );
document.write( "\"2x%2B50=100\"\r\n" );
document.write( "\"2x=50\"\r\n" );
document.write( "\"x=25\"\r\n" );
document.write( "\r\n" );
document.write( "So since\r\n" );
document.write( "\r\n" );
document.write( "\"y=25-x\"\r\n" );
document.write( "\"y=25-25\"\r\n" );
document.write( "\"y=0\"\r\n" );
document.write( "\r\n" );
document.write( "So there are 25 pigs and no chickens.\r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" ); document.write( "
\n" );