When you are given two endpoint, and you are required to calculate the distance, you can use the formula;
[tex]\begin{gathered} d=\sqrt[]{(x_2-x_{1)^2}+(y_2-y_1)^2} \\ \text{Where,} \\ x_1=-2,x_2=3,y_1=0,y_2=-5 \\ d=\sqrt[]{(3-\lbrack-2\rbrack)^2+(-5-0)^2} \\ d=\sqrt[]{(3+2)^2+-5}^2 \\ d=\sqrt[]{5^2+\lbrack-5\rbrack^2} \\ d=\sqrt[]{25+25} \\ d=\sqrt[]{50} \\ d=7.0710 \\ d\approx7.07 \end{gathered}[/tex]