The polynomial x2+bx+b is a factor of x3+2x2+2x+c. Enter all possible values of b, separated by commas.
The possible values of b are 3 and -1.