document.write( "Question 270802: A bag of coins contains nickels, dimes, and quarters. There are a total of 17 coins in the bag, and the total amount of money in the bag is $2.00. There is one more dime than there are nickels. How many dimes, nickels, and quarters are in the bag? \n" ); document.write( "
Algebra.Com's Answer #198320 by craigt(10)\"\" \"About 
You can put this solution on YOUR website!
Define the variables:
\n" ); document.write( "x = The number of Nickels
\n" ); document.write( "y = The number of Dimes
\n" ); document.write( "z = The number of Quarters
\n" ); document.write( "Define what you know based on the information given as a formula:
\n" ); document.write( "1. The total number of coins is 17:
\n" ); document.write( "\"x%2By%2Bz=17\"
\n" ); document.write( "There is one more dime than nickels:
\n" ); document.write( "\"y=x%2B1\" or \"-x%2By%2B0z=1\"
\n" ); document.write( "The total of all coins is $2.
\n" ); document.write( "\".05x%2B.10y%2B.25z=2.00\"
\n" ); document.write( "To make this last formula easier to work with, multiply both sides by 100 to
\n" ); document.write( "eliminate the decimal places.
\n" ); document.write( "\"5x%2B10y%2B25y=200\"\r
\n" ); document.write( "\n" ); document.write( "So here is our system of equations:
\n" ); document.write( "1. \"x%2By%2Bz=17\"
\n" ); document.write( "2. \"-x%2By%2B0z=1\"
\n" ); document.write( "3. \"5x%2B10y%2B25z=200\"\r
\n" ); document.write( "\n" ); document.write( "We were given information to express y in terms of x, so if we can solve for z in terms of x, then we can simply substitute and solve for x.
\n" ); document.write( "There are a couple ways to do this. Equations 1 & 2 make it easy to eliminate one of the variables. By adding the two, you can eliminate x and by subtracting 2. from 1. you can eliminate y. By eliminating the x, we would be adding an extra step, so we would like to subtract eq.2 from eq.1 so we can define z in terms of x:\r
\n" ); document.write( "\n" ); document.write( "\"x%2By%2Bz=17\"
\n" ); document.write( "\"-x%2By%2B0z=1\"
\n" ); document.write( "----------------
\n" ); document.write( "\"2x%2B0y%2Bz=16\"
\n" ); document.write( "Solve for z:
\n" ); document.write( "\"z=16-2x\"
\n" ); document.write( "We already solved for y:
\n" ); document.write( "\"y=x%2B1\"
\n" ); document.write( "Now substitute into equation 3.
\n" ); document.write( "\"5x%2B10%28x%2B1%29%2B25%2816-2x%29=200\"
\n" ); document.write( "Simplify:
\n" ); document.write( "\"5x%2B10x%2B10%2B400-50x=200\"
\n" ); document.write( "\"-35x%2B410=200\"
\n" ); document.write( "\"-35x=-210\" or \"x=6\"
\n" ); document.write( "Then substitute 6 for x: \"y=6%2B1\", \"y=7\"
\n" ); document.write( "Again, substitue 6 for x, now to solve for z: \"z=16-%282%2A6%29\", \"z=4\"\r
\n" ); document.write( "\n" ); document.write( "To check your answers, substitute x, y, and z back into our known formula
\n" ); document.write( "\"x%2By%2Bz=17\", \"6%2B7%2B4=17\" True
\n" ); document.write( "\".05x%2B.10y%2B.25z=2\", \".05%286%29%2B.1%287%29%2B.25%284%29=2.00\" True
\n" ); document.write( "Answer: 6 Nickels, 7 Dimes, & 4 Quarters\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );