In a coordinate plane, how is the midpoint of a line segment determined?
A) By averaging the x-coordinates and y-coordinates of the endpoints of the segment
B) By summing the x-coordinates and y-coordinates of the endpoints and dividing by the total number of points
C) By finding the distance between the endpoints and dividing by two
D) By selecting the endpoint with the smallest x and y coordinates