Lamar has 46 coins, all nickels and dimes. The total value of all these coins is $3.05. How many nickels does he have?
A. 15
B. 16
C. 23
D. 31