Direction ratios of this line are its denominators, i.e., $ - 3,2k,2 = {a_1},{b_1},{c_1}$
$\therefore$ A vector along this line is ${\vec b_1} = - 3\hat i + 2k\hat j + 2\hat k$
Again, equation of second line is $\frac{{x - 1}}{{3k}} = \frac{{y - 1}}{1} = \frac{{z - 6}}{{ - 5}}$
Direction ratios of this line are its denominators, i.e., $3k,1, - 5 = {a_2},{b_2},{c_2}$
$\therefore$A vector along this line is ${\vec b_2} = 3k\hat i + \hat j - 5\hat k$
Since these given lines are perpendicular.
$\therefore {\vec b_1}.{\vec b_2} = {a_1}{a_2} + {b_1}{b_2} + {c_1}{c_2} = 0$
$\Rightarrow \left( { - 3} \right)\left( {3k} \right) + \left( {2k} \right)\left( 1 \right) + 2\left( { - 5} \right) = 0$$ \Rightarrow - 9k + 2k - 10 = 0$
$ \Rightarrow - 7k = 10 \Rightarrow k = \frac{{ - 10}}{7}$