Six dollars were exchanged for nickels and dimes. The number of nickelswas the same as the number of dimes. How many nickels were there inthe change?