The coordinates of a midpoint of a line delimited by two endpoints is:
Where (xm,ym) are the coordinates of the midpoint, (x1,y1) are the coordinates of the first endpoint and (x2,y2) are the coordinates of the second endpoint. We want to find (x2,y2), therefore:
The coordinates of the endpoint two are (7,21).