Apply the Distance & Midpoint Formulas