document.write( "Question 122202: All purple aliens have four legs and all green aliens have 7 legs.There are a total of 436 legs and 97 heads. How many aliens of each color are there? \n" ); document.write( "
Algebra.Com's Answer #89697 by stanbon(75887)\"\" \"About 
You can put this solution on YOUR website!
All purple aliens have four legs and all green aliens have 7 legs.There are a total of 436 legs and 97 heads. How many aliens of each color are there?
\n" ); document.write( "----------------
\n" ); document.write( "Legs Equation: 4p + 7g = 436
\n" ); document.write( "Heads Equation : p + g = 97
\n" ); document.write( "------------------------
\n" ); document.write( "p = 97-g
\n" ); document.write( "Substitute to solve for g:
\n" ); document.write( "4(97-g)+7g = 436
\n" ); document.write( "388-4g+7g = 436
\n" ); document.write( "3g = 54
\n" ); document.write( "g = 18 (# of green aliens)
\n" ); document.write( "--------------------
\n" ); document.write( "Substitute into p = 97-g to solve for \"p\":
\n" ); document.write( "p = 97-18 = 79 (# of puple aliens)
\n" ); document.write( "==========================
\n" ); document.write( "Cheers,
\n" ); document.write( "Stan H.
\n" ); document.write( "
\n" );