The function p is defined by p(x)=x2+2x. If p(x)=8, what is the sum of all possible values of x?
-4
-2
2
4