What is the solution to this math problem?
Solve -363*x - 18345 + 1335 + 312 = 0 for x.
-46