document.write( "Question 1105285: A farmer bought a number of pigs for $203. However, 6 of them died before he could sell the rest at a profit of 4 per pig. His total profit was $50. How many pigs did he originally buy?\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #720070 by ikleyn(52777)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "A farmer bought a number of pigs for $203. However, 6 of them died before he could sell the rest at a profit of 4 per pig.
\n" ); document.write( "His total profit was $50. How many pigs did he originally buy?
\n" ); document.write( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "Let \"x\" be the unknown number of pigs he originally bought, and\r\n" );
document.write( "let \"p\" be the original price for each individual pig.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Then you have these two equations\r\n" );
document.write( "\r\n" );
document.write( "xp = 203                 (1)\r\n" );
document.write( "(x-6)*(p+4) = 203+50     (2)\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Simplify (2):\r\n" );
document.write( "\r\n" );
document.write( "xp - 6p + 4x - 24 = 203 + 50\r\n" );
document.write( "\r\n" );
document.write( "203 -6p + 4x - 24 = 203 + 50\r\n" );
document.write( "\r\n" );
document.write( "-6p + 4x - 24 = 50\r\n" );
document.write( "\r\n" );
document.write( "-6p + 4x = 50 + 24 = 74\r\n" );
document.write( "\r\n" );
document.write( "-3p + 2x = 37.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Finally, you have these two equations\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "xp = 203\r\n" );
document.write( "-3p + 2x = 37.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Express p from the second equation  p = \"%282x-37%29%2F3\"  and substitute it into he first.\r\n" );
document.write( "You will get a quadratic equation for the single unknown \"x\".\r\n" );
document.write( "\r\n" );
document.write( "x*(2x-37) = 203*3 = 609.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Solve it and get the answer x= 29.\r\n" );
document.write( "
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "--------------
\n" ); document.write( "Notice.   Other setup/setups are possible,  too.  For example,  this one:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"%28203%2B50%29%2F%28x-6%29\" - \"203%2Fx\" = 4.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );