When you are given two endpoint, and you are required to calculate the distance, you can use the formula;
8.3m questions
10.9m answers