document.write( "Question 743921: A farmer looks out into the barn yard and sees the pigs and chickens. He says to his daughter, I count 40 heads and 100 feet . How many pig s and how many chicken are there? \n" ); document.write( "
Algebra.Com's Answer #453111 by tommyt3rd(5050)\"\" \"About 
You can put this solution on YOUR website!
Let's use
\n" ); document.write( "P-#pigs
\n" ); document.write( "C-#chickens\r
\n" ); document.write( "\n" ); document.write( "I count 40 heads: every animal has a head so...\r
\n" ); document.write( "\n" ); document.write( "\"P%2BC=40\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "...and 100 feet...\r
\n" ); document.write( "\n" ); document.write( "Pigs have 4 feet so 4P is the number of Pig's feet he sees and by the same thinking 2C is how many Chicken's feet. So...\r
\n" ); document.write( "\n" ); document.write( "\"4P%2B2C=100\"\r
\n" ); document.write( "\n" ); document.write( "To make our work easier we'll divide every term by 2...\r
\n" ); document.write( "\n" ); document.write( "\"2P%2BC=50\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We have 2-equations and 2-unknowns:\r
\n" ); document.write( "\n" ); document.write( "\"P%2BC=40\"
\n" ); document.write( "\"2P%2BC=50\"\r
\n" ); document.write( "\n" ); document.write( "From the top equation we can say
\n" ); document.write( "\"C=40-P\"\r
\n" ); document.write( "\n" ); document.write( "Next
\n" ); document.write( "\"2P%2BC=50\"\r
\n" ); document.write( "\n" ); document.write( "becomes...\r
\n" ); document.write( "\n" ); document.write( "\"2P%2B%2840-P%29=50\"\r
\n" ); document.write( "\n" ); document.write( "From which we can quickly deduce that there are 10 pigs. And since there are 40 animals there must be 30 chickens.\r
\n" ); document.write( "\n" ); document.write( ":)
\n" ); document.write( "
\n" ); document.write( "
\n" );