Thank you for posting your question here at brainly. I hope my answer will help.
Since the midpoint of a line segment ZP is A and XY = ZA therefore XY is equal also to AP as midpoint divides a line segment into two equal segments. For example the total length of line segment is 10" then to get the midpoint you divide with to so the midpoint is in 5".