document.write( "Question 3172: there are 41 pigs and chikens on a farm. There are 100 legs counted altogether, how many of each animal are there? \n" ); document.write( "
Algebra.Com's Answer #1374 by WannabeCAgirl83(35)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "pigs = p
\n" ); document.write( "chickens = c\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Step 1
\n" ); document.write( "Finding Equations:
\n" ); document.write( "There are 41 pigs and chickens on a farm.
\n" ); document.write( "p + c = 41 → Eqn 1\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "There are 100 legs counted altogether.
\n" ); document.write( "4p + 2c = 100 → Eqn 2
\n" ); document.write( "(Note that a pig has 4 legs while a chicken has 2. Therefore it’s 4p and 2c.)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Step 2
\n" ); document.write( "Isolating p in Eqn 1:
\n" ); document.write( "p + c = 41 | - c on both sides
\n" ); document.write( "p = 41 - c\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Step 3
\n" ); document.write( "Substituting p in Eqn 2 with the term found for p in step 2. Then isolating c:
\n" ); document.write( "4(41 - c) + 2c = 100
\n" ); document.write( "164 - 4c + 2c = 100 | re-arranging
\n" ); document.write( "164 - 2c = 100 | - 164 on both sides
\n" ); document.write( "- 2c = - 64 | : - 2
\n" ); document.write( "c = 32 → There are 32 chicken.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Step 4
\n" ); document.write( "Substituting c in Eqn 1 by the value found for c in step 3. Then again isolating p:
\n" ); document.write( "p + c = 41
\n" ); document.write( "p + 32 = 41 | - 32 on both sides
\n" ); document.write( "p = 9 → There are 9 pigs.
\n" ); document.write( "
\n" ); document.write( "
\n" );