Solve this math problem

Solve -42*d + 9989 = -335*d + 3250 for d.
-23