Any point on the given line be (r−1,2r+2,3r+k).
This point will lie on the YZ plane if r−1=0⇒r=1.
So, co-ordinate of A is (0,4,3+k).
Also, that point will lie on ZX plane if 2r+2=0⇒r=−1. So, co-ordinate of B is (−2,0,k−3).
In vectorial notion →OA=4^j+(k+3)^k and →OB=−2^i+(k−3)^k, where O is the origin.
Now, angle between →OA and →OB =cos−1(→OA.→OB|→OA||→OB|).
Now, according to the problem,
→OA.→OB=0
⇒k2−9=0
⇒k=±3