$$y=x^{2}+x-2; y=-x+1$$
$x=1\text{, }y=0$
$x=-3\text{, }y=4$