First of all, we need the determinant $$\left|\begin{matrix}
2 & 7& 2\\ 6&1&-k\\ 2&2k+1&k-1 \end{matrix} \right|=0 $$
or $$2(k-1)-14k+12(2k+1)-2+2k(2k+1)-42(k-1)=0 $$
from this we have
$$4k^2-24k+36=0 $$
which has solution $k=3$.
Now replace $k=3$ to the equation of planes to see if this planes intersect in a line or not.
First of all, we need the determinant $$\left|\begin{matrix} 2 & 7& 2\\ 6&1&-k\\ 2&2k+1&k-1 \end{matrix} \right|=0 $$ or $$2(k-1)-14k+12(2k+1)-2+2k(2k+1)-42(k-1)=0 $$ from this we have $$4k^2-24k+36=0 $$ which has solution $k=3$.
Now replace $k=3$ to the equation of planes to see if this planes intersect in a line or not.