Given lines:
x−73=y−1−1=z+21=λ
Therefore, the general points are A(3λ+7,−λ+1,λ−2))
and x2=y−73=z1=μ
Therefore, the general points are B(2μ,3μ+7,μ)
Direction ratios of AB are 3λ−2μ+7,−(λ+3μ+6),λ−μ−2
Clearly, 3λ−2μ+71=λ+3μ+64=λ−μ−22
Taking first two fractions, we have
λ−μ+2=0 ⋯(1)
again taking last two fractions, we have
λ−5μ−10=0 ⋯(2)
Solving equation (1) and (2), we get
λ=−5, μ=−3
So, A(−8,6,−7) and B(−6,−2,−3)
Now, AB=√4+64+16=√84
∴(AB)2=84