solve the quadratic equation: x^2 +2x=0

whould the answer be 0,2

No, the roots are x = 0 and x = -2,

because
x(x+2) = 0