You have a total of 21 coins, all nickels and dimes. The total value is $1.70. Write and solve a system of equations to find the number of dimes d and the number of nickels n that you have.