Write down the solution for this math problem: Solve -142*x = 239*x - 111*x + 50*x + 11840 for x.
-37