The difference in the x-coordinates of the two points is 8-(-6) = 14.
The difference in the y-coordinates of the two points is 10-2 = 8.
These distances can be considered to be the lengths of the legs of a right triangle whose hypotenuse is the line segment between the given points. Then the distance between the points is given by the Pythagorean Theorem as ...