Okay, here we have this:
Considering the provided polynomial, we are going to identify if x+2 is a factor or not, so we obtain the following:
Evaluating the function at x=-2, we have:

Since P(-2)=2, then it means that x+2 is not a factor of the polynomial.