Concept:For a line to be parallel to a plane, its direction vector must be perpendicular to the normal vector of the plane.Explanation:Let the common ratio of the given line be t.A general point on the given line is Q(−2+3t,−1−t,2+t).Line ℓ passes through P(2,1,1) and intersects the given line at Q.So the direction vector of ℓ is PQ​=(−4+3t,−2−t,1+t).The plane x+y+2z=18 has normal vector n=(1,1,2).Since ℓ is parallel to the plane, PQ​⋅n=0.Thus (−4+3t)(1)+(−2−t)(1)+(1+t)(2)=0.Simplifying gives 4t−4=0, so t=1.Substituting t=1, we get Q=(1,−2,3).Therefore PQ​=(1−2,−2−1,3−1)=(−1,−3,2).Equivalently, direction ratios can be taken as (1,3,−2).So the equation of ℓ is 1x−2​=3y−1​=−2z−1​.This line also passes through (3,4,−1), since 12−3​=31−4​=−21+1​=−1.Hence it matches option D.Answer:Option D: 1x−3​=3y−4​=−2z+1​