The given plane is x−y−z=9 .... (i)
The given line AB is 2x−2=3y+2=−6z−6 .... (ii)
The equation of the line passing through (1,0,−3) and parallel to 2x−2=3y+2=−6z−6 is 2x−1=3y−0=−6z+3=r .... (iii)
Coordinate of any point on (iii) may be given as P(2r+1,3r,−6r−3).
If P is the point of the intersection of (i) and (iii), then it must lie on (i). Therefore, (2r+1)−(3r)−(−6r−3)=9 2r+1−3r+6r+3=9 or r=1
Therefore, the coordinates of P are 3,3,−9.
Distance between Q(1,0,−3) and P(3,3,−9) =(3−1)2+(3−0)2+(−9+3)2 =4+9+36=7