document.write( "Question 131973: A farmer has both pigs and chickens on his farm. There are 78 feet and 27 heads. How many pigs and how many chickens are there? \n" ); document.write( "
Algebra.Com's Answer #96408 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
\"p\"= number of pigs
\n" ); document.write( "\"c\"= number of chickens
\n" ); document.write( "They all have exactly 1 head, so
\n" ); document.write( "(1) \"p+%2B+c+=+27\"
\n" ); document.write( "(2) \"4p+%2B+2c+=+78\"
\n" ); document.write( "Multiply (1) by \"-2\" and add to (2)
\n" ); document.write( "\"4p+%2B+2c+=+78\"
\n" ); document.write( "\"-2p+-+2c+=+-54\"
\n" ); document.write( "\"2p+=+24\"
\n" ); document.write( "\"p+=+12\"
\n" ); document.write( "\"12+%2B+c+=+27\"
\n" ); document.write( "\"c+=+15\"
\n" ); document.write( "There are 12 pigs and 15 chickens
\n" ); document.write( "check:
\n" ); document.write( "\"4p+%2B+2c+=+78\"
\n" ); document.write( "\"4%2A12+%2B+2%2A15+=+78\"
\n" ); document.write( "\"48+%2B+30+=+78\"
\n" ); document.write( "\"78+=+78\"
\n" ); document.write( "OK
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" );