You can put this solution on YOUR website! to find the length of line segment you have to use the
distance formula
d= √[(x2-x1)^2 +(y2-y1)^2]
given
x1= -1, x2=3
y1=2 ,y2=-2
distance
d=√[(3-(-1))^2 +(-2-2)^2]
d=√(3+1)^2+(-4)^2
d=√4^2+4^2
d=√16+16
d=√32
d=4√2