for the slope, the equation is:
[tex]m=\frac{y2-y1}{x2-x1}[/tex]in case you have two points
The equation of the line equation:
[tex]y=mx+b[/tex]If you want to find the interception in x-axis, you have to change the y for a 0, like this
[tex]0=mx+b[/tex][tex]x=-\frac{b}{m}[/tex]If you want to find the interception in y-axis, you have to change the x for a 0, like this, that is "b" in the equation
[tex]y=m(0)+b[/tex][tex]y=b[/tex]