The horizontal distance from points (5,-18) and (8,-17) is 3 because it is 3 units from 5 to 8. The vertical distance is 1 since it is one unit from -18 to -17. Now we can use the equation where a=3 and b=1 and c is the distance that you are looking for: