Given a line segment with two end points AB
Step 1: Write out the coordinates and define the (x,y) values


Step 2: write out the formula for the distance between two point
![|AB|=\sqrt[]{(x_2-x_1)^2+(y_2-y_1)^2}](https://img.qammunity.org/2023/formulas/mathematics/college/z2rzx4xwfpe3tyhoh4ojgk2whdpajrnx21.png)
Step 3: Substitute the x and y values in the above formula
![\begin{gathered} |AB|=\sqrt[]{(3-(-2_{})^2+(2-2)^2} \\ =\sqrt[]{(3+2)^2-0^2} \\ =\sqrt[]{5^2} \\ =\sqrt[]{25} \\ =5\text{units} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/c2ca7qdb2k0sifigtkst4mpmh9ln3umrc0.png)
Hence the length of the side AB is 5 units