solve:

y=x-1, y=x squared+2x-7

set y = y

x^2 + 2x - 7 = x - 1
x^2 + x - 6 = 0
(x+3)(x-2) = 0
x = -3 or x = 2

sub back into one of the original equations to find the corresponding y value.