solve simultaneously for x and y in the following set of equations:

x-y=3
x-xy-2y-7=0

since y = x-3,

x - x(x-3) - 2(x-3) - 7 = 0
x^2-2x+1 = 0
x=1, y=-2