document.write( "Question 1050005: Dan opened up his piggy bank and found a total of 35 coins - nickels, dimes, quarters. He has 5 more nickels than dimes and a total of $6. How many of each coin were in his bank?\r
\n" ); document.write( "\n" ); document.write( "dimes = d
\n" ); document.write( "nickels = d+5
\n" ); document.write( "quarters = 35-d-(d+5)\r
\n" ); document.write( "\n" ); document.write( "I know it is .05(d+5); .10d; I think the quarters is .25(35-2d-5),
\n" ); document.write( "I know the sum of all 3 coins = $6
\n" ); document.write( "I know to multiply by 100 to get rid of the decimals\r
\n" ); document.write( "\n" ); document.write( "but I'm not getting it to come out correctly.\r
\n" ); document.write( "\n" ); document.write( "thanks for your help!
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #665591 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"+n+\" = the number of nickels
\n" ); document.write( "Let \"+d+\" = the number of dimes
\n" ); document.write( "Let \"+q+\" = the number of quarters
\n" ); document.write( "----------------------------------
\n" ); document.write( "(1) \"+n+%2B+d+%2B+q+=+35+\"
\n" ); document.write( "(2) \"+.05n+%2B+.1d+%2B+.25q+=+6+\"
\n" ); document.write( "(3) \"+n+=+d+%2B+5+\"
\n" ); document.write( "----------------------------------
\n" ); document.write( "(2) \"+5n+%2B+10d+%2B+25q+=+600+\"
\n" ); document.write( "(2) \"+n+%2B+2d+%2B+5q+=+120+\"
\n" ); document.write( "-----------------------------------
\n" ); document.write( "(2) \"+d+%2B+5+%2B+2d+%2B+5q+=+120+\"
\n" ); document.write( "(2) \"+3d+%2B+5q+=+115+\"
\n" ); document.write( "-----------------------------------
\n" ); document.write( "(1) \"+d+%2B+5+%2B+d+%2B+q+=+35+\"
\n" ); document.write( "(1) \"+2d+%2B+q+=+30+\"
\n" ); document.write( "Multiply this result by \"+5+\"
\n" ); document.write( "and subtract (2) from (1)
\n" ); document.write( "----------------------------
\n" ); document.write( "(1) \"+10d+%2B+5q+=+150+\"
\n" ); document.write( "(2) \"+-3d+-+5q+=+-115+\"
\n" ); document.write( "-------------------------
\n" ); document.write( "\"+7d+=+35+\"
\n" ); document.write( "\"+d+=+5+\"
\n" ); document.write( "and
\n" ); document.write( "(3) \"+n+=+d+%2B+5+\"
\n" ); document.write( "(3) \"+n+=+5+%2B+5+\"
\n" ); document.write( "(3) \"+n+=+10+\"
\n" ); document.write( "and
\n" ); document.write( "(1) \"+n+%2B+d+%2B+q+=+35+\"
\n" ); document.write( "(1) \"+10+%2B+5+%2B+q+=+35+\"
\n" ); document.write( "(1) \"+q+=+20+\"
\n" ); document.write( "----------------------------
\n" ); document.write( "There are 10 nickels, 5 dimes, 20 quarters
\n" ); document.write( "---------------------------------------
\n" ); document.write( "(2) \"+.05n+%2B+.1d+%2B+.25q+=+6+\"
\n" ); document.write( "(2) \"+.05%2A10+%2B+.1%2A5+%2B+.25%2A20+=+6+\"
\n" ); document.write( "(2) \"+.5+%2B+.5+%2B+5+=+6+\"
\n" ); document.write( "(2) \"+6+=+6+\"
\n" ); document.write( "---------------------
\n" ); document.write( "I like to use a different variable for each
\n" ); document.write( "type of coin. All through the calculations,
\n" ); document.write( "I am sure of what I am looking at. Then, at the
\n" ); document.write( "end I can put the results all in terms of either
\n" ); document.write( "\"n\", \"d\", or \"q\"\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );