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 #635782 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
let x equal the number of martians.
\n" ); document.write( "let y equal the number of earthlings.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "each martian has 2 heads and 5 legs.
\n" ); document.write( "each earthling 1 head and 2 legs.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you have counted 29 heads and 67 legs at the party.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "since each martian has 2 heads, then the number of martian heads at the party is equal to 2x.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "since each earthling has 1 head, then the number of earthling heads at the party is equal to y.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you get 2x + y = 29\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "since each martian has 5 legs, then the number of martian legs at the party is equal to 5x.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "since each earthling has 2 legs, then the number of earthling legs at the party is equal to 2y.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you get 5x + 2y = 67\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you have 2 equations that need to be solved simultaneously.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "they are:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "2x + y = 29
\n" ); document.write( "5x + 2y = 67\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "multiply both sides of the first equation by 2 and leave the second equation as is and you get:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "4x + 2y = 58
\n" ); document.write( "5x + 2y = 67\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "subtract the first equation from the second to get:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x = 9\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "when x = 9, 4x + 2y = 58 becomes 36 + 2y = 58
\n" ); document.write( "solve for y to get y = (58 - 36) / 2 = 22/2 = 11\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you have x = 9 and y = 11.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "there were 9 martians and 11 earthlings at the party.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "9 martians give you 2*9 = 18 heads and 5*9 = 45 legs
\n" ); document.write( "11 earthlings gives you 1*11 = 11 heads and 2*11 = 22 legs\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "total heads = 11 + 18 = 29
\n" ); document.write( "total legs = 45 + 22 = 67\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "solution looks good.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "solution is:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "there were 9 martians and 11 earthlings at the party.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );