Given (-2, 0) ans (0, -4).
Gradient = y2−y1x2−x1\frac{y_2 - y_1}{x_2 - x_1}x2−x1y2−y1
= −42\frac{-4}{2}2−4
= -2