The coordinates at the midpoint of any line are the averages of the coordinates at the end-points. So 7 has to be the average of 10 and k .
(1/2) (10 + k) = 7
5 + k/2 = 7
k/2 = 2
k = 4
5.8m questions
7.6m answers