Simplify 2d+17-3-2d+4d