We have,
A(x1,y1)=(−1,1)
B(x2,y2)=(5,1)
C(x3,y3)=(1,4)
Now, we know that,
AB=√(x2−x1)2+(y2−y1)2
=√(5+1)2+(1+7)2
=√36+64
=√100
=10unit.
Hence, the length of AB=10unit