A pile of 22 coins consists of nickels and dimes. The total value of the coins $1.20. Find the number of each type of coin.