Write down the solution for this math problem: Solve -395*w = -13338 + 3858 for w.
24