Distance Formula:
d = square root [(x1- x2)2 + (y1 - y2)2], which is just the Pythagorean Formula, for which you are finding the hypotenuse of a right triangle.
For your numbers:
d = square root [(-5--8)2+(9-4)2]
d = square root [32+52]
d= square root (9+25)
d = square root (34)
This is your final answer, because 34 has no perfect square roots, as it's factors are 2 and 17.