==================================================
Explanation:
Subtract the y coordinates
y1-y2 = -96-(-86) = -96+86 = -10
Subtract the x coordinates in the same order
x1-x2 = 82-87 = -5
Divide the two differences to get the slope m
m = (y1-y1)/(x1-x2)
m = -10/(-5)
m = 2
You could also use the formula
m = (y2-y1)/(x2-x1)
to get the same result. All that matters is that you subtract in the same order for the x and y coordinates.