To calculate the length between A and B you have to draw them in the cartesian system and link them with a line, then using that line as hypothenuse, draw a right triangle, whose base will be paralel to the x-axis and its height will be paralel to the y-axis.
Using the coordinates calculate the length of the base and height of the triangle:
Base= XA-XB= (-1)-(-8)=7
Height= YB-YA=7-(-7)=14
Now you have to apply pythagoras theorem you can calculate the length of the hypotenuse:
The distance between poins A and B is 15.65