PEMDAS should always be followed when doing math.
Parenthesis ()
Exponents ^
Multiplication *
Division /
Addition +
Subtraction -
Does the order in which you perform the subtraction matter in the distance formula?
Does the order in which you perform the subtraction matter in the slope formula?
Subtraction should always be performed lastly.