Kevin and Randy Muise have a jar containing 39 ​coins, all of which are either quarters or nickels. The total value of the coins in the jar is ​$6.55. How many of each type of coin do they​ have?