Solve 113*d = 145*d - 128 for d.
4