Which of the following is true about the solution(s)to the equation

Given:
[tex]\sqrt[]{x+2}=x[/tex]Squaring on both sides
[tex]\begin{gathered} x+2=x^2 \\ x^2-x-2=0 \\ x^2+x-2x-2=0 \\ x(x+1)-2(x+1)=0 \\ (x+1)(x-2)=0 \end{gathered}[/tex][tex]x=-1,2[/tex]x=-1 and x=2 are both solutions.