slope is the change in y over the change in x.
Using the first and last values:
Slope = (8 - -4)/ (2 - -2)
Slope = 12/4
Slope = 3
Your answer is correct