John has $1.15 in nickels and dimes in his pocket. He has five more nickels than he does dimes. How many of each does he have?

just add up the values of the coins. If there are d dimes, then

5(d+5) + 10d = 115