document.write( "Question 98937: A farmer bought 100 animals. He spent $100. Calves are $10, pigs are $3 and chickens are $.50. The farmer cannot remember what he bought and has lost his receipt. With this information, what did he buy?\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #72647 by ptaylor(2198)\"\" \"About 
You can put this solution on YOUR website!
Let x=number of calves
\n" ); document.write( "y=number of pigs
\n" ); document.write( "And z=number of chickens\r
\n" ); document.write( "\n" ); document.write( "Now we are told that:
\n" ); document.write( " x+y+z=100---------------------eq1
\n" ); document.write( "10x+3y+0.5z=100-----------------eq2\r
\n" ); document.write( "\n" ); document.write( "Since we have three unknowns and only two equations, we will have to do a little trial and error to get at the correct answer or answers. I'm going to assume that there are fewer calves and pigs than chickens and that there are fewer calves than there are pigs or chickens, so I want to reduce eq1 and eq2 to one equation in two unknowns that relate the pigs to the calves. We can do this by multiplying eq1 by 0.5 and then subtracting it from eq2. When we do this we get:\r
\n" ); document.write( "\n" ); document.write( "eq2-0.5(eq1)=
\n" ); document.write( "9.5x+2.5y=50 subtract 9.5x from both sides
\n" ); document.write( "2.5y=50-9.5x divide both sides by 2.5\r
\n" ); document.write( "\n" ); document.write( "y=20-3.8x ------------------eq1a
\n" ); document.write( "now this tells us that:
\n" ); document.write( "the number of pigs=20-3.8 times the number of calves\r
\n" ); document.write( "\n" ); document.write( "What else do we know about this problem???\r
\n" ); document.write( "\n" ); document.write( "(1) We know that we cannot have a half a calf, a piece of pork or a chunk of chicken-------------------In other words, our solution must be whole numbers.\r
\n" ); document.write( "\n" ); document.write( "(2) Also, did you ever see a negative calf, pig or chicken???---No! ---So our solutions must be whole, positive numbers.\r
\n" ); document.write( "\n" ); document.write( "Armed with this information, we can quickly see that in eq1a, x cannot be greater than 5 or we will start getting negative pigs. So we know that:\r
\n" ); document.write( "\n" ); document.write( "0<=x<=5--------this means that we can only have between zero and five calves.
\n" ); document.write( "Let's just plug in values for the number of calves in eq1a and see what we get:\r
\n" ); document.write( "\n" ); document.write( "0 calves--------------20 pigs--------------------bingo
\n" ); document.write( "1 calf----------------piece of pork---no, no
\n" ); document.write( "2 calves--------------piece of pork---no, no
\n" ); document.write( "3 calves--------------piece of pork---no, no
\n" ); document.write( "4 calves--------------piece of pork---no, no
\n" ); document.write( "5 calves--------------1 pig---------------------bingo\r
\n" ); document.write( "\n" ); document.write( "This tells us that there are only two possible values for the pigs and calves:
\n" ); document.write( "(1) ----20 pigs and 0 calves
\n" ); document.write( "(2)------1 pig and---5 calves\r
\n" ); document.write( "\n" ); document.write( "Now let's go all the way back to eq1 and plug these bingo values in and see if we have whole, positive chickens. If so, then we have solved the problem:\r
\n" ); document.write( "\n" ); document.write( "x+y+z=100 substitute x=0 and y=20, we get:\r
\n" ); document.write( "\n" ); document.write( "0+20+z=100 subtract 20 from both sides:\r
\n" ); document.write( "\n" ); document.write( "z=80--------------------number of chickens\r
\n" ); document.write( "\n" ); document.write( "Answer #1
\n" ); document.write( "0 calves for---- $0
\n" ); document.write( "20 pigs for -----$60
\n" ); document.write( "80 chickens for -$40
\n" ); document.write( "100=100\r
\n" ); document.write( "\n" ); document.write( "x+y+z=100 substitute x=5 and y=1, we get:\r
\n" ); document.write( "\n" ); document.write( "5+1+z=100 collect like terms and subtract 6 from both sides
\n" ); document.write( "z=94-----------------------number of chickens\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Answer #2
\n" ); document.write( "5 calves for -------------$50
\n" ); document.write( "1 pig for ----------------$3
\n" ); document.write( "94 chickens for-----------$47
\n" ); document.write( "100=100\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Hope this helps-----ptaylor\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );