The slope of a line can be calculated with the following formula:

In this case, given these points:

You can set up that:

Knowing these values, you can substitute them into the formula and then evaluate, in order to find the slope of the line. This is:

The slope is:
