system of simultaneous equations
X -y /2= 1
y-2=k(x- 1)
solve
(2-k) x +(2k -4k)x-k +4k-6=0。
x 1+x2=2
that is
-2k+4k = 2(2k squared)
k= 1
The equation is y=x+ 1.