Okay, here we have this:
Considering the provided points, we obtain the following:
[tex]\begin{gathered} AB=\sqrt{\left(-5-2\right)^2+\left(2-3\right)^2} \\ =\sqrt[]{(-7)^2+(-1)^2} \\ =\sqrt[]{49+1} \\ =\sqrt[]{50} \\ =\sqrt[]{5\cdot5\cdot2} \\ =\sqrt[]{5^2}\sqrt[]{2} \\ =5\sqrt[]{2} \end{gathered}[/tex]Finally we obtain that thhe length of AB is 5 sqrt(2).