How to find length of a line segment

Let us find the length of a line segment by drawing a right-angled triangle around it and apply Pythagoras rule. If you are not sure what to do click on the hint boxes.
Can you form the formula for finding the distance between 2 points

Information: How to find length of a line segment