document.write( "Question 352519: Tony has 18 coins in his pocket that worth $2.30. The pocket contains only quarters and nickels. How many coins of each type does he have? \n" ); document.write( "
Algebra.Com's Answer #251908 by robertb(5830)\"\" \"About 
You can put this solution on YOUR website!
Let q = # of quarters, n = # of nickels.
\n" ); document.write( "Then from the given, \"q%2Bn=18\", and \"0.25q%2B0.05n=2.30\"
\n" ); document.write( "From the first equation, \"q=18-n\".
\n" ); document.write( "Substituting this into the second equation gives
\n" ); document.write( "\"0.25%2A%2818-n%29%2B0.05n=2.30\"
\n" ); document.write( "\"4.5-0.25n%2B0.05n=2.30\"
\n" ); document.write( "\"-0.2n=-2.2\"
\n" ); document.write( "\"n=%28-2.2%29%2F%28-0.2%29\"
\n" ); document.write( "\"n=11\"
\n" ); document.write( "This gives \"q=18-11=7\"
\n" ); document.write( "Therefore there are 11 nickels and 7 quarters.
\n" ); document.write( "
\n" );