Ben has $3.40 consisting of quarters and dimes. How many coins of each kind does he have if he has 22 coins? Which of the following system of equations represents the word problem if d is the number of dimes and q is quarters?
A) d + q = 22 and 10d + 25q = 340
B) 10d + 25q = 22 and d + q = 340
C) dq = 22 and d + q = 340