y =x+2

y =x^2

set them equal...

x^2=x+2

x^2-x-2=0
(x-2)(x+1)=0
solve for x