A jar contains n nickels and d dimes there are 20 coins in the jar, and the total value of the coin s is one dollar and forty cents. how many nickels and how many dimes are in the jar?