The system of equations a1x+b1y+c1z=0,a2x+b2y+c2z=0 and a3x+b3y+c3z=0 has a non-trivial solution, if
∣a1a2a3b1b2b3c1c2c3∣=0.
Hence, for the given lines 2x+3y−z=0,x+ky−2z=0 and 2x−y+z=0, we have
∣2123k−1−1−21∣=0
⇒2(k−2)−3(1+4)−1(−1−2k)=0
⇒2k−4−15+1+2k=0
⇒k=29
Thus, the lines are
2x+3y−z=0...(1)
x+29y−2z=0...(2)
2x−y+z=0...(3)
(1)−(3)⇒4y−2z=0
2y=z...(4)
zy=21...(5)
put z from eq (4) into (1)
2x+3y−2y=0
2x+y=0
yx=−21...(6)
From eq (4) and (6)
xz=−4
Hence, yx+zy+xz+k=−21+21−4+29=21.