[tex]\bf \textit{distance between 2 points}\\ \quad \\
\begin{array}{lllll}
&x_1&y_1&x_2&y_2\\
% (a,b)
&({{ -17}}\quad ,&{{ 7}})\quad
% (c,d)
&({{ -22}}\quad ,&{{ 5}})
\end{array}\quad
% distance value
\begin{array}{llll}
d = \sqrt{({{ x_2}}-{{ x_1}})^2 + ({{ y_2}}-{{ y_1}})^2}\\\\\\
d=\sqrt{[(-22)-(-17)]^2+[5-7]^2}
\end{array} [/tex]