Given,
λ1,λ2 be the values of λ for which the points (25,1,λ) and (−2,0,1) are at equal distance from the plane 2x+3y−6z+7,
So, by using distance formula of a point from a plane we get,
∣22+32+62−4+0−6+7∣=∣22+32+625+3−6λ+7∣
⇒∣7−4+0−6+7∣=∣75+3−6λ+7∣
⇒73=∣715−6λ∣
⇒λ=2 or 3
⇒λ1=3,λ2=2 as λ1>λ2
So, (λ1−λ2,λ2,λ1)=(1,2,3)
Now finding the distance of point (1,2,3) from the line 1x−5=2y−1=2z+7=λ we get,

Now form diagram we can see that, PM is perpendicular to given line,
So, by perpendicular condition we get,
PM⋅(i^+2j^+2k^)=0
⇒(λ+4)+2(2λ−1)+2(2λ−10)=0
⇒9λ=18orλ=2
Hence, the point M will be M(7,5,−3)
So, the distance ∣PM∣=62+32+62=9