Eight coins (dimes and quarters) are worth 170 cents. How many

dimes are there?

d+q = 8

10d+25q = 170
Now solve for d.