Given:
\(\frac{x+1}{7}=\frac{y+1}{-6}=\frac{z+1}{1}\) and \(\frac{x-3}{1}=\frac{y-5}{-2}=\frac{z-7}{1}\)
It is known that the shortest distance between the two lines.
\(\frac{\mathrm{x}-\mathrm{x}_{1}}{\mathrm{a}}=\frac{\mathrm{y}-\mathrm{y}_{1}}{\mathrm{~b}}=\frac{\mathrm{z}-\mathrm{z}_{1}}{\mathrm{c}}\) and \(\frac{\mathrm{x}-\mathrm{x}_{2}}{\mathrm{a}}=\frac{\mathrm{y}-\mathrm{y}_{2}}{\mathrm{~b}}=\frac{\mathrm{z}-\mathrm{z}_{2}}{\mathrm{c}}\) is given by,
\(\mathrm{d}=\frac{\left|\begin{array}{ccc} \mathrm{x}_{2}-\mathrm{x}_{1} & \mathrm{y}_{2}-\mathrm{y}_{1} & \mathrm{z}_{2}-\mathrm{z}_{1} \\ \mathrm{a}_{1} & \mathrm{~b}_{1} & \mathrm{c}_{1} \\ \mathrm{a}_{2} & \mathrm{~b}_{2} & \mathrm{c}_{2} \end{array}\right|}{\sqrt{\left(\mathrm{b}_{1} \mathrm{c}_{2}-\mathrm{b}_{2} \mathrm{c}_{1}\right)^{2}+\left(\mathrm{c}_{1} \mathrm{a}_{2}-\mathrm{c}_{2} \mathrm{a}_{1}\right)^{2}+\left(\mathrm{a}_{1} \mathrm{~b}_{2}-\mathrm{a}_{2} \mathrm{~b}_{1}\right)^{2}}} \quad\quad\)...(1)
Comparing the given equations, we obtain
\(\mathrm{x}_{1}=-1, \mathrm{y}_{1}=-1, \mathrm{z}_{1}=-1 \)
\(\mathrm{a}_{1}=7, \mathrm{~b}_{1}=-6, \mathrm{c}_{1}=1\)
\(\mathrm{x}_{2}=3, \mathrm{y}_{2}=5, \mathrm{z}_{2}=7\)
\(\mathrm{a}_{2}=1, \mathrm{~b}_{2}=-2, \mathrm{c}_{2}=1\)
Then, \(\left|\begin{array}{ccc}\mathrm{x}_{2}-\mathrm{x}_{1} & \mathrm{y}_{2}-\mathrm{y}_{1} & \mathrm{z}_{2}-\mathrm{z}_{1} \\ \mathrm{a}_{1} & \mathrm{~b}_{1} & \mathrm{c}_{1} \\ \mathrm{a}_{2} & \mathrm{~b}_{2} & \mathrm{c}_{2}\end{array}\right|=\left|\begin{array}{ccc}4 & 6 & 8 \\ 7 & -6 & 1 \\ 1 & -2 & 1\end{array}\right|\)
\(=4(-6+2)-6(7-1)+8(-14+6)\)
\(=-16-36-64=-116\)
Now \(\sqrt{\left(\mathrm{b}_{1} \mathrm{c}_{2}-\mathrm{b}_{2} \mathrm{c}_{1}\right)^{2}+\left(\mathrm{c}_{1} \mathrm{a}_{2}-\mathrm{c}_{2} \mathrm{a}_{1}\right)^{2}+\left(\mathrm{a}_{1} \mathrm{~b}_{2}-\mathrm{a}_{2} \mathrm{~b}_{1}\right)^{2}}\)
\(=\sqrt{(-6+2)^{2}+(1+7)^{2}+(-14+6)^{2}}\)
\(=\sqrt{16+36+64}\)
\(=\sqrt{116}\)
\(=2 \sqrt{29}\)
Substituting all the values in equation (1), we obtain
\(\mathrm{d}\) \(=\frac{116}{2 \sqrt{29} }\)
\(=\frac{-58}{\sqrt{29} }\)
\(=\frac{-2 \times 29}{\sqrt{29} }\)
\(=-2 \sqrt{29}\)
Since distance is always non-negative, the distance between the given lines is \(2 \sqrt{2} 9\) units.