For this case we need to take in count that the equation of a line is given by:
Where m is the slope and b the intercept. We can find the slope with this formula:
Now we just need to find the intercept. And we can use one point given and we got:
So then our equation would be:
And we can verify that it works
x=-3d y= 1/3 (-3d)+d= -d+d=0
x=0 y= 1/3 (0) +d =d