Use the distance formula
[tex]d = \sqrt {\left( {x_1 - x_2 } \right)^2 + \left( {y_1 - y_2 } \right)^2[/tex]
Input corresponding numbers
[tex]d = \sqrt {\left( {2- 6} \right)^2 + \left( {5-8} \right)^2[/tex]
Solve
[tex]d = \sqrt {\left( {-4} \right)^2 + \left( {-3} \right)^2[/tex]
[tex]\sqrt{16 + 9}[/tex]
[tex]\sqrt{25} = 5\\\\ d=5[/tex]
So, the distance between the points given is 5