The distance formula (actually, the Pythagorean Theorem) that gives the distance between the points (x1, y1) and (x2, y2) is: d = √[ (x2 - x1)2 + (y2 - y1)2 ]
The distance from x(-1, 3) and y(3,0):
call x1 = -1, y1 = 3, x2 = 3, y2 = 0:
d = √[ (3 - -1)2 + (0 - 3)2 ] = √[ (4)2 + (- 3)2 ] = √[ 16 + 9 ] = √[ 25 ] = 5
The distance from y(3,0) and z(-1,-2):
call x1 = 3, y1 = 0, x2 = -1, y2 = -2:
d = √[ (-1 - 3)2 + (-2 - 0)2 ] = √[ (-4)2 + (- 2)2 ] = √[ 16 + 4 ] = √[ 20 ] = 2√5
The distance from x(-1, 3) and z(-1,-2):
call x1 = -1, y1 = 3, x2 = -1, y2 = -2:
d = √[ (-1 - -1)2 + (-2 - 3)2 ] = √[ (0)2 + (- 5)2 ] = √[ 0 + 5 ] = √[ 25 ] = 5
The total distance will be 5 + 2√5 + 5 = 10 + 2√5
The distance formula (actually, the Pythagorean Theorem) that gives the distance between the points (x1, y1) and (x2, y2) is: d = √[ (x2 - x1)2 + (y2 - y1)2 ]
The distance from x(-1, 3) and y(3,0):
call x1 = -1, y1 = 3, x2 = 3, y2 = 0:
d = √[ (3 - -1)2 + (0 - 3)2 ] = √[ (4)2 + (- 3)2 ] = √[ 16 + 9 ] = √[ 25 ] = 5
The distance from y(3,0) and z(-1,-2):
call x1 = 3, y1 = 0, x2 = -1, y2 = -2:
d = √[ (-1 - 3)2 + (-2 - 0)2 ] = √[ (-4)2 + (- 2)2 ] = √[ 16 + 4 ] = √[ 20 ] = 2√5
The distance from x(-1, 3) and z(-1,-2):
call x1 = -1, y1 = 3, x2 = -1, y2 = -2:
d = √[ (-1 - -1)2 + (-2 - 3)2 ] = √[ (0)2 + (- 5)2 ] = √[ 0 + 5 ] = √[ 25 ] = 5
The total distance will be 5 + 2√5 + 5 = 10 + 2√5