We have, point P(3,4,4)
Equation of line joining the points Q(3,−4,−5) and R(2,−3,1) is −1x−3=1y+4=6z+5=r
Any point on above line is (−r+3,r−4,6r−5)
Now, satisfying it in the given plane 2x+y+z=7, we get
2(−r+3)+(r−4)+(6r−5)=7
⇒r=2
So, required point of intersection is T(1,−2,7).
Hence, PT=(3−1)2+(4+2)2+(4−7)2=7.