I will use the graphing method.
To find the slope of the line using this method,
first set up a coordinate system.
Now plot both of your points.
Label a point A and label another one B.
I have chosen to label (0,2) A and (1,6) B but it doesn't matter.
Now graph a line through the 2 points.
Now the slope or m is equal to the rise over run
from point A to point B on the coordinate system.
To get from point A to point B, we rise 4 units and run 1 unit.
So our slope or rise over run is 4/1 which reduces to 4.