for the slope, the equation is:
in case you have two points
The equation of the line equation:
If you want to find the interception in x-axis, you have to change the y for a 0, like this
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