document.write( "Question 263824: A pen contains chickens and goat. There are a total of 40 heads and 130 feet. How many chicken and how many goat are in the pen?\r
\n" ); document.write( "\n" ); document.write( "I have the answer: 25 goat and 15 chicken, however, I do not know how to set up the equation. Please help
\n" ); document.write( "

Algebra.Com's Answer #194378 by Greenfinch(383)\"\" \"About 
You can put this solution on YOUR website!
Say the number of goats is G, then the number of chickens is 40 - G as there are 40 heads and each chicken and each goat has one head.
\n" ); document.write( "The number of feet is 130
\n" ); document.write( "So 2(40 - G) + 4G = 130
\n" ); document.write( "So 80 - 2G + 4G = 130
\n" ); document.write( "2G = 50
\n" ); document.write( "G = 25
\n" ); document.write( "25 goats and 15 chickens
\n" ); document.write( "
\n" );