A bag holds 295 coins worth $14.65. There are pennies, nickels, and dimes in the bag, and the same number of nickels and dimes. How many of each type of coin was in the bag?