TeX джерело:
d=\frac{\left|5\cdot (-1)+(-13)\cdot 2 -8\right |}{\sqrt{5^2+(-13)^2}}=\frac{\left|-39\right |}{13}=\frac{39}{13}=3.