document.write( "Question 157859: A bag of nickels, dimes, quarters and loonies contain 55 coins with a total weight of 130, worth a total of $12.50. If dimes weigh 1, nickels weigh 2, quarters weigh 3, and loonies weigh 4, how many coins of each type are there? \n" ); document.write( "
Algebra.Com's Answer #116322 by ptaylor(2198)\"\" \"About 
You can put this solution on YOUR website!
Let x=number of nickels
\n" ); document.write( "y=number of dimes
\n" ); document.write( "z=number of quarters
\n" ); document.write( "w=number of loonies
\n" ); document.write( "(Note: We know before we start that we have only three equations and four unknowns and this means that we may have to do some trial and error to come up with an answer)
\n" ); document.write( "We are told that:\r
\n" ); document.write( "\n" ); document.write( "x+y+z+w=55----------------------------------------------------eq1
\n" ); document.write( "and that: (let's deal in pennies)
\n" ); document.write( "5x+10y+25z+100w=1250 divide each term by 5\r
\n" ); document.write( "\n" ); document.write( "x+2y+5z+20w=250--------------------------------------------eq2\r
\n" ); document.write( "\n" ); document.write( "and that:
\n" ); document.write( "2x+y+3z+4w=130----------------------------------------------------eq3\r
\n" ); document.write( "\n" ); document.write( "subtract eq1 from eq2 and we get:
\n" ); document.write( "y+4z+19w=195--------------------------------------------------------eq1a
\n" ); document.write( "multiply eq2 by 2 and then subtract eq3 from it and we get:
\n" ); document.write( "3y+7z+36w=370--------------------------------------------------------eq2a
\n" ); document.write( "now multiply eq1a by 3 and then subtract eq2a from it and we get:
\n" ); document.write( "5z+21w=215 -------------------------------------------------------------eq3a
\n" ); document.write( "21w=215-5z and
\n" ); document.write( "w=(215-5z)/21-----a relationship between the number of loonies and the number of quarters.
\n" ); document.write( "Now we know several things:
\n" ); document.write( "(1) we cannot have fractions of coins (our answers must be whole numbers)
\n" ); document.write( "(2) we cannot have negative numbers (negative coins not allowed)
\n" ); document.write( "(3) we cannot have more than 12 loonies otherwise we break the bank
\n" ); document.write( "From (3) above, we have the following inequality:
\n" ); document.write( "(215-5z)/21<=12
\n" ); document.write( "If w is:
\n" ); document.write( "12-----no good. We get negative quarters
\n" ); document.write( "11-----no good. Ditto
\n" ); document.write( "10----BINGO!!!:----BUT NO GOOD
\n" ); document.write( "215-5Z=210; -5Z=-210; Z=42-------------NO GOOD--42 QUARTERS AND 10 LOONIES BREAKS THE BANK, SO LETS KEEP GOING
\n" ); document.write( "9 :-5Z=-26----------------------NO GOOD---FRACTIONS OF QUARTERS
\n" ); document.write( "8 :-5z=-47-----------------------DITTO---FRACTIONS
\n" ); document.write( "7 :-5Z=-68------------------------DITTO---FRACTIONS
\n" ); document.write( "6 :-5Z=-89--------------------------DITTO---FRACTIONS
\n" ); document.write( "5 :-5Z=-110 BINGO!!!! Z=22 THIS MAY WORK. BUT FIRST LETS SEE IF THERE ARE OTHER POSSIBILITIES
\n" ); document.write( "4 :-5Z=-131--------------FRACTIONS FOR QUARTERS
\n" ); document.write( "3 :-5Z=-152----------------DITTO---FRACTIONS
\n" ); document.write( "2 :-5Z=-173-----------------DITTO FRACTIONS
\n" ); document.write( "1 :-5Z=-194----------------DITTO FRACTIONS\r
\n" ); document.write( "\n" ); document.write( "LOOKS LIKE WE ONLY HAVE ONE SOLUTION:
\n" ); document.write( "w=5 ---LOONIES
\n" ); document.write( "z=22 ---QUARTERS
\n" ); document.write( "Lets plug these into eq1a and see what we get for y:
\n" ); document.write( "y+4z+19w=195
\n" ); document.write( "y+4*22+5*19=195
\n" ); document.write( "y=195-88-95=12 so:
\n" ); document.write( "y=12---DIMES
\n" ); document.write( "Now lets plug these into eq1 and see what we get for x:\r
\n" ); document.write( "\n" ); document.write( "x+y+z+w=55
\n" ); document.write( "x+12+22+5=55
\n" ); document.write( "x=55-39=16
\n" ); document.write( "x=16-----------NICKELS
\n" ); document.write( "CK weights
\n" ); document.write( "12*1+16*2+22*3+5*4=130
\n" ); document.write( "12+32+66+20=130
\n" ); document.write( "130=130
\n" ); document.write( "CK value
\n" ); document.write( "16*5+12*10+22*25+5*100=1250
\n" ); document.write( "80+120+550+500=1250
\n" ); document.write( "1250=1250\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Hope this helps---ptaylor\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );