What is the solution to this math problem?
Solve 865 = -14*k + 585 for k.
-20