Rodger has 22 coins, all quarters and nickels. The total value of the coins is $2.70. How many of each type of coin does he have?