document.write( "Question 160102: when young MacDonal was starting his farm a long time ago,cows cost $10 each,pigs cost $3 each and chickens cost $0.50 each. He puechsed at least one of kind of animal. He paid $100 for exatly 100 animals. HOW MANY CHICKENS DID HE BUY? \n" ); document.write( "
Algebra.Com's Answer #118117 by ankor@dixie-net.com(22740)\"\" \"About 
You can put this solution on YOUR website!
If cows cost $10 each, pigs cost $3 each and chickens cost $0.50 each. He got at
\n" ); document.write( " least one of kind of animal. He paid $100 for exactly 100 animals.
\n" ); document.write( " HOW MANY CHICKENS DID HE BUY?
\n" ); document.write( ":
\n" ); document.write( "x = no. cows
\n" ); document.write( "y = no. pigs
\n" ); document.write( "z = no. of chickens
\n" ); document.write( ":
\n" ); document.write( "Total animal equation
\n" ); document.write( "x + y + z = 100
\n" ); document.write( ":
\n" ); document.write( "Total cost equation
\n" ); document.write( "10x + 3y + .5z = 100
\n" ); document.write( ":
\n" ); document.write( "Multiply the above equation by 2 and subtract the 1st equation (total animals)
\n" ); document.write( "20x + 6y + 1z = 200
\n" ); document.write( " x + y + 1z = 100
\n" ); document.write( "-----------------------subtraction eliminates z
\n" ); document.write( "19x + 5y = 100
\n" ); document.write( "Arrange equation in the general y= form
\n" ); document.write( "5y = 100 - 19x
\n" ); document.write( "y = 20 - \"19%2F5\"x; divided both sides by 5
\n" ); document.write( ":
\n" ); document.write( "Study this equation and it's apparent the only value for x that will give a
\n" ); document.write( " positive integer value for y, is x = 5
\n" ); document.write( ":
\n" ); document.write( "y = 20 - \"19%2F5\"*5
\n" ); document.write( "y = 20 - 19
\n" ); document.write( "y = 1 pig
\n" ); document.write( ":
\n" ); document.write( "We have 5 cows, 1 pig
\n" ); document.write( "Find chickens: 100 - 5 - 1 = 94 chickens
\n" ); document.write( ":
\n" ); document.write( "Check:
\n" ); document.write( "10(5) + 3(1) + 94(.5) =
\n" ); document.write( "50 + 3 + 47 = 100
\n" ); document.write( "
\n" );