We need to find two points on the line, these points have the form

We replace these two points in the formula

In this case, we can choose the points (0,1) and (1,2). Then we have

Replacing these points in the formula we obtain

Then, the slope is m=1.