We can use a general case to get the slope of a line, using the slope formula.
First, we need to find the coordinates of two points in the line.
Suppose we have the following graph:
The line passes through the points (0, 2) and (-2, 0)
Having this information, we have:
Using the slope formula:
Then, the slope for this line is m = 1.