p(X)= X(X+2)(X-4)

P(X)=(X+2)^3(X-1)

I tried to answer this earlier, but I am not sure what you need.