Answer: The equation for slope is m = (y2 - y1) / (x2 - x1)
Explanation:
Let m represent the slope.
Let’s say you have two coordinates fall on a line. (1, 5) and (6, 20).
Plugging this into the formula would look like this: m = (20 - 5) / (6 - 1). Simplify to m = 15 / 5. The slope of this line I made up for this example would be 3, since 15/5 = 3.
This formula works with any pair of coordinates on the same line.