first find your slope! by doing
y2-y1/x2-x1
in this case it would be
2-(-3)/-1-(-6)
It would give you 5/5 which would reduce to 1 meaning your slope equals 1
with your slope now you should use the point slope formula y-y1=m(x-x1)
i’m going to use the point (-1,2) so the equation would be
y-2=1(x-(-1))
simplifying that you would get
y-2=1x+1
then put it in y=mx+b form and get
y=x+3