\r\n" );
document.write( "\r\n" );
document.write( "You have more than just a value. You have a total number of coins as well.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Let n be the number of nickels, and d be the number of dimes. First thing\r\n" );
document.write( "we know is that
. We'll call this the quantity equation\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "We also know that the value of one nickel is 5 cents, so the value of n\r\n" );
document.write( "nickels must be 5n cents. Similarly, the value of d dimes is 10d cents.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The total value of the coins is $2.60, which can be expressed as 260 cents, so:\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "
, and we'll call this the value equation.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Looking at the quantity equation, we can solve it for n:
.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Substitute this expression for n in the value equation:\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "And then solve the single equation in the single variable. The problem here is\r\n" );
document.write( "that you have an impossible situation. If you only have nickels and dimes\r\n" );
document.write( "totaling 20 coins, the largest amount of money you could have would be $2.00\r\n" );
document.write( "(if you had 20 dimes and zero nickels). So the given total value of $2.60 is\r\n" );
document.write( "absurd. I'm thinking that you perhaps made a typing error, either you have 30\r\n" );
document.write( "coins, or their value is only $1.60.\r\n" );
document.write( "\r\n" );
document.write( "Assuming the former:\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
=>
\r\n" );
document.write( "
and
\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Assuming the latter:\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
=>
\r\n" );
document.write( "
and
\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "
\n" );
document.write( "