The slope $m$ of a line passing through two points $(x_1, y_1)$ and $(x_2, y_2)$ is given by the formula:
$$
m = \frac{y_2 - y_1}{x_2 - x_1}
$$
Substituting the given points into this formula, we get:
$$
m = \frac{2 - (-2)}{3 - 1} = \frac{4}{2} = 2
$$
Show more…