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