PASCAL 1997 Problem 13

Janet has 10 coins consisting of nickels, dimes, and quarters. Seven of the coins are either dimes or quarters, and eight of the coins are either dimes or nickels. How many dimes does Janet have?

Answer Choices
A. 2
B. 3
C. 4
D. 5
E. 6