A number of dimes and quarters are worth $2.55. If the number od dimes and quarters were interchanged the resulting new amount would be $2.70. How many of each kind of coin were there before the interchange?