You haven't exactly explained what the question is looking for? Do you want an equation written?
That's a question for arrangement, so we have:
Answer:
Hi use the attached formula to calculate the midpoints
Attached also is an example
Hope this helps