document.write( "Question 1174009: A farmhouse shelters 10 animals. Some are pigs some are ducks, Altogether there are 36 legs. How many of each animal are there? \n" ); document.write( "
Algebra.Com's Answer #799355 by ewatrrr(24785)\"\" \"About 
You can put this solution on YOUR website!
 
\n" ); document.write( "Hi,
\n" ); document.write( "A farmhouse shelters 10 animals. Some are pigs some are ducks,
\n" ); document.write( " Altogether there are 36 legs. How many of each animal are there?
\n" ); document.write( " Let x be the number of pigs and (10-x) be the number of ducks.
\n" ); document.write( " 4x + 2(10-x) = 36 legs
\n" ); document.write( " 4x + 20 - 2x = 36
\n" ); document.write( " 2x = 16
\n" ); document.write( " x = 8, the number of pigs, 2 is the number of ducks \"10-8+\"
\n" ); document.write( "Checking our Answer:
\n" ); document.write( " 4*8 + 2*2 = 36 checks.
\n" ); document.write( "Wish You the Best in your Studies.
\n" ); document.write( " \n" ); document.write( "
\n" );