A bag contains 18 coins consisting of quarters and dimes. The total value of the coins is $2.85. Which system of equations can be used to determine the number of quarters, q, and the number of dimes, d, in the bag?
A. 0.10q+0.25d=2.85
q+d=18
B. 0.10q+0.25d=18
q+d=2.85
C. 0.25q+0.10d=2.85
q+d=18
D. 0.25q+0.10d=18
q+d=2.85