document.write( "Question 1109307: I have to spend $100 to buy 100 animal dog cost $10 cat cost $3 mice cost $.50 I have to use at least one of each. How much animal of each I will need to equal $100 \n" ); document.write( "
Algebra.Com's Answer #724303 by greenestamps(13200)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "(1) \"a%2Bb%2Bc+=+100\" the total number of dogs, cats, and mice is 100
\n" ); document.write( "(2) \"10a%2B3b%2B.5c+=+100\" the total cost of the dogs ($10 each), cats ($3 each), and mice ($.50 each) is $100

\n" ); document.write( "How to solve a problem like this:
\n" ); document.write( ".. eliminate one variable to give you one equation in two variables.
\n" ); document.write( ".. solve that equation for either variable in terms of the other.
\n" ); document.write( ".. use the fact that the variables must have whole number values to find the solution(s)

\n" ); document.write( "The way this problem is stated, there should only be one answer. In similar problems, there might be several solutions.

\n" ); document.write( "Multiply equation (2) by 2 and subtract equation (1) from the result, eliminating variable c:
\n" ); document.write( "(2) \"20a%2B6b%2Bc+=+200\"
\n" ); document.write( "(1) \"a%2Bb%2Bc+=+100\"
\n" ); document.write( "(3) \"19a%2B5b+=+100\"

\n" ); document.write( "A little logical analysis at this point can find the answer. So let's do that; but then I will show you the formal algebraic way to finish the problem -- so you can apply the method the next time you see a problem like this.

\n" ); document.write( "In equation 3, \"5b\" is a multiple of 5, because b is a whole number; and 100 is also a multiple of 5. That means \"19a\" must be a multiple of 5, with a being a whole number. Since 19 is a prime number, that means a must be a multiple of 5. And with the two equations we started with, it is clear that a must be 5.

\n" ); document.write( "So a=5; equation (3) then tells us that b is 1; and then equation (1) tells us c is 94.

\n" ); document.write( "Answer: 5 dogs, 1 cat, 94 mice.

\n" ); document.write( "And here is the formal algebraic method for finishing the problem, starting with equation (3).

\n" ); document.write( "\"19a%2B5b+=+100\"
\n" ); document.write( "\"5b+=+100-19a\"
\n" ); document.write( "\"5b+=+%28100-20a%29%2Ba\" [do this so that (100-20a) is evenly divisible by 5]
\n" ); document.write( "\"b+=+%2820-4a%29%2B%28a%2F5%29\"

\n" ); document.write( "In this form of the equation, b and a are whole numbers, so (20-4a) is a whole number; that means (a/5) must be a whole number.

\n" ); document.write( "So, as with the logical reasoning we used above, we see that a must be a multiple of 5. And, as before, the conditions of the problem only allow one choice for the value of a: a=5.

\n" ); document.write( "And once again (of course), the solution is 5 dogs, 1 cat, and 94 mice.
\n" ); document.write( "
\n" );