When looking for the midpoint of a segment defined by two end points, the average of both coordinates are taken. Averaging the 2 x-coordinates give the new x-coordinate, and the same applies for the y-coordinate. This is shown below:
Midpoint = ( (1 + 4)/2 , (-1 + -6)/2 )
Midpoint = (2.5 , -3.5)