The slope of a line is a value that indicates both the direction and the steepness of the line. In a linear function graph in a cartesian grid the slope tells us how much does the value of y increases or decreases when the value of x increases in one unit. The slope appears in the equation of a line when this is written in the slope-intercept form:

And in the point-slope form:

In both cases the letter m expresses the slope, b is the y-intercept and (h,k) is a point in the line. Any point (x,y) that is part of the line is a solution to this equations. When you are given a table of values or the graph of the line and you need to find the slope you just need to take two points and use them to build two equation (you can use the point-slope or the slope-intercept form). For example, let's assume that you are given the graph of a line that passes through (1,2) and (3,8). We can take the general equation in slope-intercept form and build two equations replacing x and y:

By solving this system of equations you can find the slope. For example we can substract m from the first equation:

And replace this in place of b in the second equation:

We substract 2 from both sides and then we divide both side by 2:

Then for this case the slope is 3. You can do something similar using the equation in point-slope form remembering that (h,k) is a point of the line. We use one of the two points we have, for example (1,2) and we get:

Then we use the other point taking (x,y)=(3,8) and we have an equation for m:

If we divide by two we get:

And we arrived at the same result. That's how you can find the slope of a line using two of its points. These points can be given by the question, found in a table of values or in a graph.