Determine which of the following polynomials have (x+2) as a factor:
(x+1) is a factor of the polynomial (a) x3+x2−x+1 (b) x3+2x2−x−2 (c) x3+2x2−x+2 (d) x4+x3+x2+1