help.
B = (5, 5)
A = (2, 1)
Subtract the x coordinates = (5 - 2) = 3 ... square this = 9
Subtract the y coordinates = ( 5 - 1) = 4 ..... square this = 16
Add the two results 9 + 16 = 25
Take the square root of this = 5 units = the distance between A and B