document.write( "Question 999042: A person have some hens and some cows. Number of head is 38 and number of legs 100 then how many cows and hens \n" ); document.write( "
Algebra.Com's Answer #616718 by fractalier(6550)\"\" \"About 
You can put this solution on YOUR website!
Calls hens and cows, x and y.
\n" ); document.write( "Thus x + y = 38
\n" ); document.write( "Now when we count legs, we have
\n" ); document.write( "2x + 4y = 100
\n" ); document.write( "Let's multiply the first equation by two and subtract...
\n" ); document.write( "2x + 4y = 100
\n" ); document.write( "-(2x + 2y = 76)
\n" ); document.write( "which gives
\n" ); document.write( "2y = 24
\n" ); document.write( "y = 12 cows
\n" ); document.write( "x = 26 chickens
\n" ); document.write( "
\n" ); document.write( "
\n" );