You can put this solution on YOUR website! Consider the equation is of the form y = mx + c
(the question does not say, so I am going to assume it is a straight line)
Plug in the variables
2 = -6m + c
0 = -2m + c
Subtract the second from the first
2 = -4m
m = -0.5
Therefore c = - 1
The whole equation is y = -0.5x - 1