Solve the system using elimination.

y = -x + 3
y = x^2 + 1

equate the y's to eliminate them:

-x+3 = x^2+1
x^2+x-2 = 0
(x+2)(x-1) = 0
...