The equation of a line is y=mx+b, where m is the slope and b is the y-intercept. y and x are the y and x values of any point respectively.
The information we have:
y = 6
x = -1
m = -3
6 = -3*-1 + b
6 = 3 + b
b = 3
So now we know that m = -3 and b = 3
y and x were 6 and -1 in this case but we need an equation that works for any point on the line so we can keep y and x just as it is (variables, not numbers).