What is the solution to this math problem?
Solve -10314 = -382*x + 7670 - 3086 for x.
39