Carlos has a box of coins that he uses when playing poker with friends. The box currently contains 39 ​coins, consisting of​ pennies, dimes, and quarters. The number of pennies is equal to the number of​ dimes, and the total value is ​$2.34. How many of each denomination of coin does he​ have?