Line 1 is the intersection of the planes with normals \((3,2,-4)\) and \((5,-7,-17)\). Its direction is the cross product: \((3,2,-4)\times(5,-7,-17)=(-62,\,31,\,-31)\), proportional to \(\vec d_1=(2,-1,1)\).
A point on line 1: put \(z=0\): \(3x+2y=5\) and \(5x-7y=-2\) give \(y=1,\ x=1\). So \(\vec a_1=(1,1,0)\).
Line 2: \(\vec a_2=(2,1,-1)\), \(\vec d_2=(3,-5,2)\).
\(\vec d_1\times\vec d_2=(2,-1,1)\times(3,-5,2)=(3,\,-1,\,-7)\), magnitude \(\sqrt{9+1+49}=\sqrt{59}\).
\(\vec a_2-\vec a_1=(1,0,-1)\); dot product with \((3,-1,-7)\) is \(3+0+7=10\).
Shortest distance \(=\frac{10}{\sqrt{59}}\), so \(k=59\).
Answer: 59