Simplify (d^2+6d+9)+(d^3+6d+9)