Assign x1 and y1 the coordinates of the first point.
For instance, if the coordinates of the first point are (2, 4), then x1 = 2 and y1 = 4.
Assign x2 and y2 the coordinates of the second point.
If the coordinates of the second point are (4, 8), then x2 = 4 and y2 = 8.
Substitute the values into the slope equation, m = (y1 - y2) / (x1 - x2).
The equation of the line with points at (2, 4) and (4, 8) would look like this: m = (4 - 8) / (2 - 4).
Simplify the equation to determine the value of m, or the slope of the line.
m = -4 / -2, or 2.