Write down the solution for this math problem: Solve 1311*w - 36649 + 27852 = 14794 + 36715 for w.
46