How to solve this x(1+x)=2

Find all the real solutions

I can't remember how to solve this...
the answers are -2, 1 I think...

x^2+x-2=0

(x+2)(x-1)=0
x=-2,or x=1