7√2 units.
Explanation:
Given,
A(-5,1) = (x1,y1) and B(2,-6) = (x2,y2)
The distance between the points A and B is known by using the formula
p(x,y) = √(x1-x2)²+(y1-y2)²
p(x,y) = √(-5-2)²+(1-(-6))²
p(x,y) = √(-7)²+(1+6)²
p(x,y) = √49+49
p(x,y) = √98
p(x,y) = √49×2
p(x,y) = 7√2 units.