document.write( "Question 579801: A farmer has pigs and chickens. He has 24 legs but 7 heads. How many of each animal does he have? I know it's 5 pigs and 2 chickens but I don't know how to set up the problem to solve it.
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #371066 by ankor@dixie-net.com(22740)\"\" \"About 
You can put this solution on YOUR website!
A farmer has pigs and chickens.
\n" ); document.write( "He has 24 legs but 7 heads.
\n" ); document.write( "How many of each animal does he have?
\n" ); document.write( ":
\n" ); document.write( "The leg equation
\n" ); document.write( "4p + 2c = 24
\n" ); document.write( ":
\n" ); document.write( "The head equation
\n" ); document.write( "p + c = 7
\n" ); document.write( "
\n" );