.
The fact that the three planes intersect in a line MEANS that the given system of equation has infinitely many solutions.
It may happen if and only if the determinant of the coefficient matrix of the system is equal to zero:
det = 0.
It is your equation to find "k".
So, calculate the determinant of the matrix as a function of "k"; equate it to zero and from this equation find the value/the values of "k".
Another way is to reduce the matrix of coefficients to its diagonal form using elementary operations on rows of the matrix
(the Gauss elimination algorithm), and then to require that all the coefficients of the last row are equal to zero.
When you get the number of "k", you must check that the obtained (or the original) system of equations really has infinitely many solutions
(to exclude the existing alternative that the system has no solutions at all !)