i have 40 coins all dimes, nickels, and quarter, worth $4.05. I have 7 more nickels than dimes. How many quarters do I have?

D+N+Q=40

N=D+7
10D+5N+25Q=405

For N in the first and last equations, put in the second equation. Then you have two equations, two unknowns. Solve