What is the solution to this math problem?
Solve -1582*x + 5918 = -1716*x - 4400 for x.
-77