You can put this solution on YOUR website! You can apply the "Remainder/Factor theorem" which basically states that:
"If the function P(x) is divided by (x+a) and the remainder is zero, then (x+a) is a factor of P(x).
When you do this division, () you will find that you get with a zero remainder. So (x+2) must be a factor of the given function (P(x)).