Write down the solution for this math problem: Solve -829*x + 118*x = 506*x + 19861 + 49508 for x.
-57