Use the distance formula to calculate the length of side AB

Given a line segment with two end points AB
Step 1: Write out the coordinates and define the (x,y) values
[tex]A(-2,2),x_1=-2,y_1=2[/tex][tex]B(3,2),x_2=3,y_2=2[/tex]Step 2: write out the formula for the distance between two point
[tex]|AB|=\sqrt[]{(x_2-x_1)^2+(y_2-y_1)^2}[/tex]Step 3: Substitute the x and y values in the above formula
[tex]\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}[/tex]Hence the length of the side AB is 5 units