The slope of the can be determined by the formula :
The quotient of change in y and change in x
While the distance formula which is based on the Pythagorean Theorem,
So basically, the slope is for the calculation on how steep or how much inclination the the line has.
and the distance is merely the calculation of distance or measurement between two points.
Rewriting the formula :