Midpoint & Endpoint Illustrator

Here, points A and B are moveable. Can you estimate the coordinates (x,y) for the midpoint M? How can we calculate them?

Here, point A and point M (the midpoint) are moveable. Can you estimate the coordinates B(x,y) for the other endpoint of the segment? How can we calculate them?