document.write( "Question 1018164: Hi
\n" ); document.write( "farm animals are for sale in groups of five.100 animals were bought for 1000 dollars.a pig cost 20 dollars, chicken 5 dollars and a sheep 30 dollars.how many sheep were bought.\r
\n" ); document.write( "\n" ); document.write( "I know that this type of question can be solved by guess and check but can u show me how to solve it as 2 simultaneous equations in 3 variables.\r
\n" ); document.write( "\n" ); document.write( "thanks
\n" ); document.write( "

Algebra.Com's Answer #634334 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"+p+\" = number of pigs/5 bought
\n" ); document.write( "Let \"+c+\" = number chickens/5 bought
\n" ); document.write( "Let \"+s+\" = number of sheep/5 bought
\n" ); document.write( "--------------------------------
\n" ); document.write( "5 pigs cost $100
\n" ); document.write( "5 chickens cost $25
\n" ); document.write( "5 sheep cost $150
\n" ); document.write( "(1) \"+100%2F5+=+20+\" groups of 5 animals were bought
\n" ); document.write( "----------------
\n" ); document.write( "(1) \"+100p+%2B+25c+%2B+150s+=+1000+\"
\n" ); document.write( "(2) \"+5p+%2B+5c+%2B+5s+=+100+\"
\n" ); document.write( "------------------------
\n" ); document.write( "Multiply both sides of (2) by \"+20+\"
\n" ); document.write( "and subtract (1) from (2)
\n" ); document.write( "(2) \"+100p+%2B+100c+%2B+100s+=+2000+\"
\n" ); document.write( "(1) \"+-100p+-25c+-+150s+=+-1000+\"
\n" ); document.write( "--------------------------------
\n" ); document.write( "\"+75c+-+50s+=+1000+\"
\n" ); document.write( "\"+3c+-+2s+=+40+\"
\n" ); document.write( "I'll try:
\n" ); document.write( "\"+s+=+1+\"
\n" ); document.write( "\"+c+=14+\"
\n" ); document.write( "\"+3%2A14+-+2%2A1+=+40+\"
\n" ); document.write( "\"+42+-+2+=+40+\"
\n" ); document.write( "\"+1+\" = number of sheep / 5
\n" ); document.write( "---------------------
\n" ); document.write( "There are 5 sheep
\n" ); document.write( "---------------------
\n" ); document.write( "check:
\n" ); document.write( "number of chickens = \"14%2A5+=+70+\"
\n" ); document.write( "\"+100+-+5+-+70+=+25+\"
\n" ); document.write( "There are 25 pigs
\n" ); document.write( "-----------------
\n" ); document.write( "(1) \"+100p+%2B+25c+%2B+150s+=+1000+\"
\n" ); document.write( "(1) \"+100%2A5+%2B+25%2A14+%2B+150%2A1+=+1000+\"
\n" ); document.write( "(1) \"+500+%2B+350+%2B+150+=+1000+\"
\n" ); document.write( "(1) \"+1000+=+1000+\"
\n" ); document.write( "and
\n" ); document.write( "(2) \"+5p+%2B+5c+%2B+5s+=+100+\"
\n" ); document.write( "(2) \"+5%2A5+%2B+5%2A14+%2B+5%2A1+=+100+\"
\n" ); document.write( "(2) \"+25+%2B+70+%2B+5+=+100+\"
\n" ); document.write( "(2) \"+100+=+100+\"
\n" ); document.write( "OK
\n" ); document.write( "
\n" );