Q + D = 46 (46 coins in all)
25Q + 10D = 850 (total worth is $8.50 or 850 cents)
One approach:
Solve the top equation for Q or D then substitute into the bottom equation
then solve that for the unknown variable. Once you do that, plug into top
equation and solve for the other variable.