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