[tex]\bf ~~~~~~~~~~~~\textit{distance between 2 points}\\ \quad \\
\begin{array}{ccccccccc}
&&x_1&&y_1&&x_2&&y_2\\
% (a,b)
&A&(~{{ 3}} &,&{{ 6}}~)
% (c,d)
&B&(~{{ -2}} &,&{{ 4}}~)
\end{array}~~
% distance value
d = \sqrt{({{ x_2}}-{{ x_1}})^2 + ({{ y_2}}-{{ y_1}})^2}
\\\\\\
AB=\sqrt{(-2-3)^2+(4-6)^2}\implies AB=\sqrt{(-5)^2+(-2)^2}
\\\\\\
AB=\sqrt{25+4}\implies AB=\sqrt{29}[/tex]