Explanation:
To find the x-coordinate of the midpoint of a segment, add the x-coordinates of the endpoints and divide by 2.
To find the y-coordinate of the midpoint of a segment, add the y-coordinates of the endpoints and divide by 2.
Example:
Find the midpoint of the segment with endpoints (2, 8) and (-5, 12).
x-coordinate of the midpoint: (2 + (-5))/2 = -3/2
y-coordinate: (8 + 12)/2 = 30/2 = 15
Midpoint: (-3/2, 15)