Solve for w -47-10w=-9w-40-3w