document.write( "Question 778206: There are 46 legs on animals at the zoo. There are two more animals with 2 legs than animals with 4 legs. How many animals have 2 legs and how many have 4 legs. I know the answer is 9 animals with 2 legs and 7 animals with 4 legs but how do I write and equation to solve this. \n" ); document.write( "
Algebra.Com's Answer #474504 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"+a+\" = number with 2 legs
\n" ); document.write( "Let \"+b+\" = number with 4 legs
\n" ); document.write( "----------------------------
\n" ); document.write( "(1) \"+2a+%2B+4b+=+46+\"
\n" ); document.write( "(2) \"+a+=+b+%2B+2+\"
\n" ); document.write( "----------------
\n" ); document.write( "Substitute (2) into (1)
\n" ); document.write( "(1) \"+2%2A%28+b+%2B+2+%29+%2B+4b+=+46+\"
\n" ); document.write( "(1) \"+2b+%2B+4+%2B+4b+=+46+\"
\n" ); document.write( "(1) \"+6b+=+42+\"
\n" ); document.write( "(1) \"+b+=+7+\"
\n" ); document.write( "and
\n" ); document.write( "\"+a+=+b+%2B+2+\"
\n" ); document.write( "\"+a+=+9+\"
\n" ); document.write( "----------
\n" ); document.write( "There are 9 with 2 legs and 7 with 4 legs\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );