Answer:

Explanation:
A relation that returns a distance between two points given is:
.
Where the points are generally:
and

This given relation is from a Pythagoras Theorem applied to a right rectangle (image attached), where c is the distance between the two points, that's why it has a squared root and the sum of two squared difference of each coordinate.
The second image shows how the relation is develop.