how to determine the length of the segment joining each pair of parts A(1;4) and B(-2-7)

length^2=(x1-x2)^2+(y1-y2)^2

= (1+2)^2 + (4+7)^2
= 9 + 121=130
length= sqrt(130)