Find the other endpoint of the line segment and with the given endpoints (2,5) and midpoint (5,1)

since both ends are the same distance from he midpoint,

(5,1)-(2,5) = (3,-4)
(5,1)+(3,-4) = (8,-3)