document.write( "Question 463884: On my math test today we had a bonus question. I want to see if I got it right. \r
\n" ); document.write( "\n" ); document.write( "A farmer has 30 animals. One day he decided to count all the legs. He counted a total of 74 legs. How many chickens and goats does he have?\r
\n" ); document.write( "\n" ); document.write( "I came up with 22 chickens and 8 goats. \r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #317738 by stanbon(75887)\"\" \"About 
You can put this solution on YOUR website!
A farmer has 30 animals. One day he decided to count all the legs. He counted a total of 74 legs. How many chickens and goats does he have?
\n" ); document.write( "I came up with 22 chickens and 8 goats. \r
\n" ); document.write( "\n" ); document.write( "-------------------
\n" ); document.write( "Animal Equation: c + g = 30 animals
\n" ); document.write( "Legs Equation: 2c +4g = 74 legs
\n" ); document.write( "---------------------
\n" ); document.write( "Divide thru the legs equation by 2:
\n" ); document.write( "c + g = 30
\n" ); document.write( "c + 2g = 37
\n" ); document.write( "---
\n" ); document.write( "Subtract the top equation from the bottom to get:
\n" ); document.write( "g = 7 (# of goats)
\n" ); document.write( "---
\n" ); document.write( "Solve for \"c\":
\n" ); document.write( "c + 7 = 30
\n" ); document.write( "c = 23 (# of chickens)
\n" ); document.write( "-------
\n" ); document.write( "Checking:
\n" ); document.write( "23 chickens have 46 legs
\n" ); document.write( "7 goats have 28 legs
\n" ); document.write( "-----
\n" ); document.write( "Total legs = 74
\n" ); document.write( "=========================
\n" ); document.write( "Cheers,
\n" ); document.write( "Stan H.
\n" ); document.write( "===========
\n" ); document.write( "
\n" ); document.write( "
\n" );