Answer:
The coordinates of P are (1,0)
Explanation:
Midpoint
The midpoint (xm,ym) of a segment defined by points (x1,y1) and (x2,y2) is calculated as follows:


We need to find the coordinates of P which is equidistant from the endpoints A=(-2,1) and B=(4,-1).
Calculate the midpoint:


Thus, the coordinates of P are (1,0)
Note the midpoint does not lie on the y-axis but on the x-axis.