Simplify 10w+3d+3w+d