Call j John's original salary and k Kate's original salary. It should be clear that it starts with k = (3/2)j.

Then when their salaries increase, you have j + 4000 for John's new salary, and k + 4000 for Kate's original salary. It should then be clear that k + 4000 = (57/40)(j + 4000).

Solve these two equations simultaneously.