The midpoint, that is the middle point of any given line segment can be calculated if the endpoints have been made available.
The endpoints for the line segment is,
(7, 5) and (-3, -5) for points X and Y respectively.
The middle point can be found at this position;
(x1 + x2) / 2 and (y1 + y2) / 2
The points are shown as
(7, 5) = (x1, y1)
(-3, -5) = x2, y2)
Therefore we now have,
Midpoint = (7 + [-3])/2 and (5 + [-5])/2
Midpoint = (7-3)/2 and (0)/2
Midpoint = 4/2 and 0/2
Midpoint = (2, 0)