We are given one endpoint (2, 5) and a midpoint (5, 1)
We are asked to find the coordinates of the other endpoint
Recall that the midpoint formula is given by
Where
So, the other endpoint can be found as
Substitute the known values
Therefore, the coordinates of the other endpoint are