A jar contains n nickels and d dimes. There are 21 coins in the jar, and the total value of the coins is $1.55. How many nickels and how many dimes are in the jar?