Step-by-step explanation:
Basically, by folding the paper so that the endpoints meet each other in one end, you need to fold it in a way such that the mid point of the segment would be in the other end. When you release the paper, an orthogonal line passing throught the midpoint is created, the points of this line are all equidistant to the endpoints
The distance of that point to any endpoint can be calculated by meassuring the hypotenuse of the triangle formed by any of the endpoints, the midpoint and that point of the line. Since the distance between one endpoint with the midpoint is equal to the distance between the other endpoint and the midpoint, then both distances should be equal.