How do the coordinates of a midpoint of a segment relate to the coordinates of the endpoints of the segment?