A collection of dimes and nickels is worth $3.30. If there are 42 coins in all, how many of dimes are there in the collection? (with work plz)

a)12

b)18

c)24

d)30