document.write( "Question 97502This question is from textbook
\n" ); document.write( ": Heres the question:
\n" ); document.write( "A farmer wants to buy 100 animals for $100.00 (must buy at least one of them)\r
\n" ); document.write( "\n" ); document.write( "Horses-$5.00
\n" ); document.write( "Cows-$3.00
\n" ); document.write( "Chicks-.50 \r
\n" ); document.write( "\n" ); document.write( "How many horses,cows and chicks does the farmer need to have 100 and 100.00?
\n" ); document.write( "

Algebra.Com's Answer #70951 by Earlsdon(6294)\"\" \"About 
You can put this solution on YOUR website!
This problem involves diophantine equations, where you have more unknowns than equations.
\n" ); document.write( "The solutions, however, are limited by the fact that the unknowns must be integers, i.e. whole cows, whole horses, etc.
\n" ); document.write( "We can set up two equations as follows: H = number of horses, C = number of cows, and ch = number of chicks.\r
\n" ); document.write( "\n" ); document.write( "From the problem description, we can write:
\n" ); document.write( "H+C+ch = 100 The total number of animals is 100.
\n" ); document.write( "($5)H+($3)C+($0.50)ch = $100 The total amount the farmer spends.
\n" ); document.write( "The two equations are:\r
\n" ); document.write( "\n" ); document.write( "1) H+C+ch = 100
\n" ); document.write( "2) 5H+3C+0.5ch = 100 Multiply this equation by 2 and subtract equation 1) from the result.\r
\n" ); document.write( "\n" ); document.write( "1) H+C+ch = 100
\n" ); document.write( "2a) 10H+6C+ch = 200
\n" ); document.write( "--------------------
\n" ); document.write( "3) 9H+5C = 100 Subtract 9H from both sides.
\n" ); document.write( "3a) 5C = 100-9H Now divide both sides by 5.
\n" ); document.write( "3b) C = 20-(9/5)H Now C can only be an integer if H is a multiple of 5. Let's try H = 5.
\n" ); document.write( "3c) C = 20-(9/5)(5)
\n" ); document.write( "C = 20 - 9
\n" ); document.write( "C = 11 This is one possibility. Now let's try H = 10
\n" ); document.write( "3d) C = 20 - (9/5)(10)
\n" ); document.write( "C = 20 - 18
\n" ); document.write( "C = 2 This is another possibility.
\n" ); document.write( "H cannot be greater than 10 otherwise you would end up with C being a non-integer or a negative number.\r
\n" ); document.write( "\n" ); document.write( "So, if C = 11 when H = 5, then ch = 100-11-5 = 84 - the number of chicks.
\n" ); document.write( "Let's check this solution. \r
\n" ); document.write( "\n" ); document.write( "H+C+ch = 100
\n" ); document.write( "5+11+84 = 100 and...
\n" ); document.write( "5($5) + 11($3) + 84($0.50) = $25 + $33 + $42 = $100 This is a valid solution!\r
\n" ); document.write( "\n" ); document.write( "Now if C = 2 when H = 10, then ch = 100-2-10 = 88 - the number of chicks.
\n" ); document.write( "Let's check this solution.
\n" ); document.write( "H+C+ch = 100
\n" ); document.write( "10+2+88 = 100 and...
\n" ); document.write( "10($5)+2($3)+88($0.50) = $50+$6+$44 = $100 This solution is also valid!\r
\n" ); document.write( "\n" ); document.write( "The two solutions are:\r
\n" ); document.write( "\n" ); document.write( "1) 5 horses, 11 cows, and 84 chicks.\r
\n" ); document.write( "\n" ); document.write( "2) 10 horses, 2 cows, and 88 chicks.
\n" ); document.write( "
\n" ); document.write( "
\n" );