Consider the given points.
A(−3,4),B(0,0)
We know that the distance between two points
d=√(x2−x1)2+(y2−y1)2
d=√(0−(−3))2+(0−(4))2
d=√(3)2+(4)2
d=√9+16
d=√25
d=5 units