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