Find the value of the real parameter
\(a\) which ensures, that
the following two lines \(p\)
and \(q\)
are perpendicular.
\[
p\colon ax + y - 4 = 0,\qquad q\colon x + 2y + 4 = 0.
\]
Given points \(A = [-1;4]\),
\(B = [2,-2]\) and
\(C = [5,-1]\), find the angle
\(\beta \) (the interior angle
at the vertex \(B\))
in the triangle \(ABC\).
Find the distance from the point \(M = [1;1]\)
to the line \(p\).
\[
\begin{aligned}p\colon x& = 3 + t, &
\\y & = 1 + t;\ t\in \mathbb{R}
\\ \end{aligned}
\]