document.write( "Question 655930: A pet store owner spent $100 to buy 100 animals. He bought at Least one iguana , one guinea pig, and one mouse, But no other kind of animals. if an iguana cost $10 a guinea pig cost $3, and a mouse cost $.50. how many of each did he buy? \n" ); document.write( "
Algebra.Com's Answer #409317 by ankor@dixie-net.com(22740)![]() ![]() You can put this solution on YOUR website! A pet store owner spent $100 to buy 100 animals. \n" ); document.write( " He bought at Least one iguana , one guinea pig, and one mouse, \n" ); document.write( " But no other kind of animals. \n" ); document.write( " if an iguana cost $10 a guinea pig cost $3, and a mouse cost $.50. \n" ); document.write( " how many of each did he buy? \n" ); document.write( ": \n" ); document.write( "let i = no. of iquanas \n" ); document.write( "let p = no. of g pigs \n" ); document.write( "let m = no. of mice \n" ); document.write( ": \n" ); document.write( "we got three unknowns and 2 equations here, will have to use some logic here \n" ); document.write( ": \n" ); document.write( "The cost equation \n" ); document.write( "10i + 3p + .5m = 100 \n" ); document.write( "and no. of creatures equation \n" ); document.write( "i + p + m = 100 \n" ); document.write( ": \n" ); document.write( "Multiply the first equation by 2, subtract the above equation \n" ); document.write( "20i + 6p + 1m = 200 \n" ); document.write( "1i + 1p + 1m = 100 \n" ); document.write( "--------------------- \n" ); document.write( "19i + 5p = 100 \n" ); document.write( "5p = -19i + 100 \n" ); document.write( "divide by 5 \n" ); document.write( "p = \n" ); document.write( "the only integer solution here is i = 5 iquanas, then \n" ); document.write( "p = -19 + 20 \n" ); document.write( "p = 1 pig \n" ); document.write( ": \n" ); document.write( "m = 100 - 5 - 1 \n" ); document.write( "m = 94 mice \n" ); document.write( ": \n" ); document.write( "see if that work out \n" ); document.write( "10(5) + 1(3) + 94(.5) = \n" ); document.write( "50 + 3 + 47 = 100 \n" ); document.write( " \n" ); document.write( " |