Algebra
posted by emm on .
This is a word problem I am supposed to solve with systems. I am having trouble setting it up if anyone could help me.
A coin bank contains only dimes and nickels. The bank contains 46 coins. If 5 dimes and 2 nickels were removed the total value of the coins would be $3.40. Find the number of dimes and the number of nickels in the bank.

Let D be the number of dimes and N be the number of nickels.
D + N = 46
10(D5) + 5(N2)= 340 (cents)
Solve those two simultaneous equations