I think the image above will help you.
Formula for mid point is x2+x1/2,y1+y2/2
8.8m questions
11.4m answers