d - odległość punktu P od prostej 2x-y-2=0
A=2, B=-1, C=-2
x_0=-1
y_0=6
d=\frac{|Ax_0+By_0+C|}{\sqrt{A^2+B^2}}=
=\frac{|2*(-1)-1*6-2|}{\sqrt{4+1}}=\frac{10}{\sqrt5} * \frac{\sqrt5}{\sqrt5}=2\sqrt5
Punkt Q leży w takiej samej odległośi od prostej co punkt P
Odp
|PQ|=4\sqrt5