Tommy has a collection of nickels and quarters and the total value of his collection is $4.90. He has a total of 42 coins in his collection. How many quarters does he have?