Solve the equation for W.