The endpoints of a line segment are (-2, 5) and (8, 13), determine the midpoint of the line.

x_m = (x_1 + x_2)/2

hmmm. you have the formula. What's the trouble?

The same formula applies for ym: (y1+y2)/2

A value midway between two others is just their average: the sum/2.