document.write( "Question 703427: Hi. I don't know how to set this up and solve it. Thank you.\r
\n" ); document.write( "\n" ); document.write( "There are 38 animals in a farmyard. Some are cows and some are chickens. In total there are 104 legs. How many chickens are there?
\n" ); document.write( "

Algebra.Com's Answer #433505 by mouk(232)\"\" \"About 
You can put this solution on YOUR website!
Let \"H\"=number of chickens
\n" ); document.write( "and \"C\"=number of cows\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"There are 38 animals in a farmyard\":
\n" ); document.write( "so \"+C+%2B+H=38+\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"In total there are 104 legs\":
\n" ); document.write( "Chickens have two legs, cows have 4 legs
\n" ); document.write( "so, \"2H%2B4C=104\"
\n" ); document.write( "or, \"H%2B2C=52\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "But from 1st equation \"C=38-H\" so \"2C=76-2H\"
\n" ); document.write( "substituting for \"2C\" in 2nd equation gives:
\n" ); document.write( "\"H%2B%2876-2H%29=52\"
\n" ); document.write( "\"76-H=52\"
\n" ); document.write( "\"H=76-52=24\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So there are 24 chicken (and 14 cows)
\n" ); document.write( "
\n" );