have a question in math

(( distance between two points ))

show that C(-5,-1)is the midpoint of the line segment joining A(-2,5) and B(-8,-7)

please in detales .. thank u

The midpoint has an x coordinate that is the average of XA and XB. That would be (-8-2)/2 = -5. The y coordinate is the average of YA and YB, and you can verify that is also satisfied.