I need to get the answer but I’m struggling to understand how to get the gradient

Answer:
-5
Step-by-step explanation:
gradient or slope of line: m = (y'-y)/(x'-x)
line pass (-2,5) (-1,0) (0,-5)
use any of two points: m = (0-5) / (-1 - -2) = -5/1 = -5