Arthur has dimes and quarters, total number of coins is 35. The value of his collection is $5.00. What number of each type is there?

dimes --->x

quarters --> 35-x

solve for x
10x + 25(35-x) = 500