Let the number of dimes and the number of quarters. Dimes are worth $0.10 and quarters are worth $0.25, so:

(A) (B)

Solve (A) for d:

Substitute into (B):

Multiply, and combine like terms:

The solution of this equation is , which gives you .