Algebraically....
d+q = 46
10d+25q = 670
Multiply the first equation by 10 and subtract the resulting equation from the second:
10d + 25q = 670
10d + 10q = 460
-----------------
15q = 210
Divide by 15 to find the number of quarters, q; then substitute in either of the original equations to find d.
You can do exactly the same calculations to solve the problem informally, without algebra:
(1) If all 46 coins were dimes, the value would be $4.60.
(2) The actual value is $6.70, which is $2.10, or 210 cents, more than $4.60.
(3) The difference between the value of a quarter and a dime is 15 cents.
(4) Divide 210 by 15 to find the number of quarters.
(5) Subtract the number of quarters from the total number of coins to find the number of dimes.