In an equation of a line, we have y, x, the slope (any variable) and the y-intercept.
You generally see the equation like this: y=mx+b.
Still with me?
Next, to find the slope, you have to subtract \(y_1\) from \(y_2\) , to get \(y_2-y_1\)
And, then we have to subtract both x-corrdinates-\(x_2-x_1\)
So, the formula to find the slope is \(\frac{y_2-y_1}{x_2-x_1}\) , where \(y_1\) is the first y-coordinate, \(y_2\) is the second y-coordinate, \(x_1\) is the first x-coordinate, and \(x_2\) is the second x-coordinate.
I know this is a lot of information, question me if you need any help!