document.write( "Question 379503: An algebra teacher drove by a farmyard full of chickens and pigs. The teacher happened to notice that there were a total of 100 heads and 270 legs. How many chickens were there? How many pigs were there? \n" ); document.write( "
Algebra.Com's Answer #269474 by ptaylor(2198)\"\" \"About 
You can put this solution on YOUR website!
Let x=number of chicks
\n" ); document.write( "And let y=number of pigs\r
\n" ); document.write( "\n" ); document.write( "We are told that:
\n" ); document.write( "x+y=100----------------------------eq1
\n" ); document.write( "We are also told that:
\n" ); document.write( "2x+4y=270------------------------------eq2\r
\n" ); document.write( "\n" ); document.write( "Multiply eq1 by 2 and then subtract it from eq2 and we get:
\n" ); document.write( "2y=70
\n" ); document.write( "y=35----------------number of pigs
\n" ); document.write( "Substitute this into eq1
\n" ); document.write( "x+35=100
\n" ); document.write( "x=65---------------------------number of chicks
\n" ); document.write( "CK
\n" ); document.write( "35+65=100
\n" ); document.write( "100=100
\n" ); document.write( "and
\n" ); document.write( "4*35+2*65=270
\n" ); document.write( "140+130=270
\n" ); document.write( "270=270\r
\n" ); document.write( "\n" ); document.write( "Hope this helps---ptaylor
\n" ); document.write( "
\n" ); document.write( "
\n" );