x−33=y−B−1=z−31=γ1p(3r,+3,B−r1,r1+3)l2:x+3−3=y+72=z−61=γ2Q=(−3−3r2,−7+2r2,6+4r2)QP:(3r1+3r2+6,−r−2r2+15,r1−4r2−3)So,3(3r1+3r2+6)−(−r1−2r2+15)+(r1−4r2−3)=0Similarly,7r1+11r2=0......(2)from(1)and(2)r1=r2=0∴PQ=(−6,−15,3)Shortestdistance=√(−3−3)2+(−7−Q)2+(6−3)2=3√30directionratioofline(2,5,−1)So,equationofline,x−32=y−85=z−3−1