document.write( "Question 405145: A farmer had some chickens and some cows. She counted 40 heads and 126 legs. How many chickens and how many cows did she have. \n" ); document.write( "
Algebra.Com's Answer #286211 by rfer(16322)\"\" \"About 
You can put this solution on YOUR website!
ch +co=40
\n" ); document.write( "co=40-ch
\n" ); document.write( "2ch+4co=126
\n" ); document.write( "2ch+4(40-ch)=126
\n" ); document.write( "2ch+160-4ch=126
\n" ); document.write( "-2ch=-34
\n" ); document.write( "ch=17 chickens
\n" ); document.write( "co=40-17=23 cows
\n" ); document.write( "
\n" );