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