Write down the solution for this math problem: Solve -8*x + 1047 - 1087 = 0 for x.
-5