The equation for working out the slope of a linear line is:
, where x and y are the coordinate pairs.
So just pick two of the purple dots on the graph and fill in the equation.
I'll pick the dot that's (-4, 1) and (4, -7).
Now I just do
, which is just
when simplified.