document.write( "Question 1019851: Martians have two heads and five legs. There was a \"meet and greet\" party that had both Martians and Earthlings. At that party I counted 29 heads and 67 legs. How many Martians and Earthlings were at the party? \n" ); document.write( "
Algebra.Com's Answer #635777 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"+m+\" = number of Martians
\n" ); document.write( "Let \"+e+\" = number of Earthlings
\n" ); document.write( "----------------------------
\n" ); document.write( "Counting heads:
\n" ); document.write( "(1) \"+1%2Ae+%2B+2m+=+29+\"
\n" ); document.write( "Counting legs:
\n" ); document.write( "(2) \"+2e+%2B+5m+=+67+\"
\n" ); document.write( "--------------------
\n" ); document.write( "Multiply both sides of (1) by \"+2+\"
\n" ); document.write( "and subtract (1) from (2)
\n" ); document.write( "(2) \"+2e+%2B+5m+=+67+\"
\n" ); document.write( "(1) \"+-2e+-+4m+=+-+58+\"
\n" ); document.write( "----------------------
\n" ); document.write( "\"+m+=+9+\"
\n" ); document.write( "and
\n" ); document.write( "(1) \"+1%2Ae+%2B+2m+=+29+\"
\n" ); document.write( "(1) \"+1%2Ae+%2B+2%2A9+=+29+\"
\n" ); document.write( "(1) \"+e+=+29+-+18+\"
\n" ); document.write( "(1) \"+e+=+11+\"
\n" ); document.write( "there are 11 Eathlings and 9 Martians
\n" ); document.write( "---------
\n" ); document.write( "check:
\n" ); document.write( "(2) \"+2e+%2B+5m+=+67+\"
\n" ); document.write( "(2) \"+2%2A11+%2B+5%2A9+=+67+\"
\n" ); document.write( "(2) \"+22+%2B+45+=+67+\"
\n" ); document.write( "(2) \"+67+=+67+\"
\n" ); document.write( "and
\n" ); document.write( "(1) \"+1%2Ae+%2B+2m+=+29+\"
\n" ); document.write( "(1) \"+1%2A11+%2B+2%2A9+=+29+\"
\n" ); document.write( "(1) \"+11+%2B+18+=+29+\"
\n" ); document.write( "(1) \"+29+=+29+\"
\n" ); document.write( "OK
\n" ); document.write( "
\n" );