document.write( "Question 486431: Please help me sole this problem:
\n" ); document.write( "There are 13 animals in a barn. Some are chickens and some are pigs. There are 40 legs in the barn. How many are there of each animal?
\n" ); document.write( "

Algebra.Com's Answer #332541 by Tatiana_Stebko(1539)\"\" \"About 
You can put this solution on YOUR website!
Let x chickens
\n" ); document.write( "Let y pigs
\n" ); document.write( "Then \"x%2By=13\"
\n" ); document.write( "The animals have \"2x%2B4y\" legs, so \"2x%2B4y=40\"
\n" ); document.write( "The system of the equations
\n" ); document.write( "\"system+%28x%2By=13%2C+2x%2B4y=40%29\"
\n" ); document.write( "divide the second equation by 2
\n" ); document.write( "\"system+%28x%2By=13%2C+x%2B2y=20%29\"
\n" ); document.write( "Subtract the first equation from the second one
\n" ); document.write( "\"y=20-13\"
\n" ); document.write( "\"y=7\" pigs
\n" ); document.write( "Substitute \"y=7\" into the first equation
\n" ); document.write( "\"x%2B7=13\"
\n" ); document.write( "\"x=13-7\"
\n" ); document.write( "\"x=6\" chickens
\n" ); document.write( "
\n" );