Step 1
(
Define the mathematical formula for the distance between two points
![\text{Distance betwe}en\text{ 2 points =}\sqrt[]{(x_2-x_1)^2-(y_2-y_1)^2}](https://img.qammunity.org/2023/formulas/mathematics/college/mdibbfgo4vqasavup4601vb2dzcgv21om1.png)
Step 2
state the related points on the road that will be used to find the length of the roads
Town A (1,2), Town D(3,8)
Town D (3,8), Town C (9,8)
Town A (1,2) , Town B (8,1)
Town C (9,8), Town B(8,1)
Step 3
Input the x and y coordinates and find the distance between the points and sum the distances to get the total length
![\text{Distance }of\text{ road 1 }=\text{ }\sqrt[]{(3-1)^2+(8-2)^2}](https://img.qammunity.org/2023/formulas/mathematics/college/q7olw1ay9u02ju8jkx00lilbkbqh0nie99.png)
![undefined]()