The general equation of a line is y = mx +b.
m is equal to the slope, so for this problem it is m = -3
b is equal to the y-intercept (the y-point when x = 0) so according to this since it passes through (0, -2), x=0 at y = -2
The equation of the line is: y = -3x - 2