Let the DR’s of line passing through intersection of the given two planes x−2y−z+5=0 and x+y+3z=6 are a,b and c.
Then, a−2b−c=0
and a+b+3c=0 ⇒−6+1a=3+1−b=1+2c ⇒a:b:c=−5:−4:3
Since, required line passes through (2, 3, 1) and parallel to above line. Hence, its equation will be −5x−2=−4y−3=3z−1