The answer here is A. "Calculate the average of the x-coordinates and the average of the y-coordinates of the endpoints."
The midpoint is basically the point located between two endpoints, where the distance is equal from the midpoint to either of the points. Since this is merely a halfway point, taking the average of the coordinates would yield us the midpoint.