Let $M(1,-1)$ be a point in a plane. Find its distance from a line given by $x+2y-4=0$.
Later on I found a formula: $$d=\frac{\left | Ax_{0}+Bx_{0}+C \right | }{\sqrt{A^2+B^2}}$$
But I did it somehow without using it. Like this:
The distance between a point $M$ and a line $p:\; y=-\frac{1}{2}x+2$ is a segment of another line that is perpendicular to $p$, let's mark it as $q$, which has the property that $M\in q$.
From $M\in q$ we have: $$y+1=k(x-1) \Rightarrow q:\;\; y=kx-(k+1)$$
From $p\perp q$ we have: $$k_{1}k_{2}=-1 \; \Rightarrow \; -\frac{1}{2}k_{2}=-1 \; \Rightarrow \; k_{2}=2$$ $$q: \;\; y=2x-3$$
Now, we obtain a point of intersection $N$ between $p$ and $q$ which is $N(2,1)$.
And now we find the distance between points $M(1,-1)$ and $N$.
$$d=\sqrt{(x_{2}-x_{1})^2+(y_{2}-y_{1})^2}=\sqrt{1^2+2^2} \;\; \Rightarrow \;\; d=\sqrt{5}$$