There are (-1+x)/2= 1 and (3+y)/2 = 0.
The coordinates of the solution are (3, -3)
2. Make the locus of two points with the same distance to AB as the median vertical line of the line segment AB.
It is sufficient to display the midpoint and slope of AB.
The midpoint is x = (- 1+3)/2 = 1.
y=( 1+5)/2=3
The slope is k =-1/((5-1)/(3-(-1)) =-1.
So the linear equation is y=-x+4.