for the slope, the equation is:
![m=(y2-y1)/(x2-x1)](https://img.qammunity.org/2023/formulas/mathematics/high-school/wt3vklmulg2853jxzclws9uvfaplhmpgv7.png)
in case you have two points
The equation of the line equation:
![y=mx+b](https://img.qammunity.org/2023/formulas/mathematics/high-school/smsb8cbft03lwblmi49nf2l6jby2ofxzws.png)
If you want to find the interception in x-axis, you have to change the y for a 0, like this
![0=mx+b](https://img.qammunity.org/2023/formulas/mathematics/college/7pyndcgwj0bj5h9rczorjja3dtsc8wd9lq.png)
![x=-(b)/(m)](https://img.qammunity.org/2023/formulas/mathematics/college/4jhbzhyqzu630lcmp8k371ks3lgneagilt.png)
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
![y=m(0)+b](https://img.qammunity.org/2023/formulas/mathematics/high-school/5pj7ro55pl13pegybz8loln98a23nn6o62.png)
![y=b](https://img.qammunity.org/2023/formulas/mathematics/college/hakg9nmcvyzasj9povd793j4rdxx4wcogs.png)