Use distance formulas between points and add them up. I'll do the first for you:
d (A to B) = sqrt( (3-(-1))2 + (-2-(-5))2) = sqrt(16+9) = 5
Note that you can be less formal and just take the absolute value of the distance in x and the value of the distance in y, then pass those through the Pythagorean Theorem to get the distance from one point to another.
Good luck!