document.write( "Question 1105020: a farmhouse shelters 10 animals. some are pigs and some are ducks. altogether there are 36 legs. how many of each animal are there? \n" ); document.write( "
Algebra.Com's Answer #719769 by Boreal(15235)\"\" \"About 
You can put this solution on YOUR website!
x pigs
\n" ); document.write( "10-x ducks
\n" ); document.write( "x*4+(10-x)*2=36
\n" ); document.write( "4x+20-2x=36
\n" ); document.write( "2x=16
\n" ); document.write( "x=8
\n" ); document.write( "8 pigs and 2 ducks.
\n" ); document.write( "
\n" );