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