Since, (a,b) is the mid-point of the line segment AB.
∴ (a,b)=(10+k2,−6+42)
[∵Mid-point of a line segment having points]
(x1,y1) and (x2,y2)]
=(x1+x22,y1+y22)]
⇒(a,b)=(10+k2,−1)
Now, equating coordinates on both sides, we get
∴ a=10+k2and b= -1 ...(i)
Given, a-2b=18
From Eq,(i), a -2 (-1) = 18
⇒a+2=18⇒a=16
From Eq.(i),16=10+k2
⇒32=10+k⇒k=32
Hence, the required value of k is 22.
⇒k=22
∴A=(10,−6),B=(22,4)
Now, distance between A(10,-6) and B(22,4)
AB=√(22−10)2+(4+6)2
⎡⎢
⎢⎣∵Distance between the points(x1,y1) and (x2,y2),d=√(x2−x1)2+(x2−y1)2⎤⎥
⎥⎦
=√(12)2+(10)2=√144+100
=√244=2√61
Hence, the required distance of AB is 2√61.