Answer:
![y=2x-1](https://img.qammunity.org/2021/formulas/mathematics/middle-school/kol5q574s8araabx1cmy6rfn2e3wb91zee.png)
Explanation:
Use the slope-intercept formula:
where m is slope and b the y-intercept.
![(-2,-5)(4,7)](https://img.qammunity.org/2021/formulas/mathematics/middle-school/5sgofqz14bsyi3bm4iasulnmxntbcicd6o.png)
Use the slope formula for when you have two points:
![(y(2)-y(1))/(x(2)-x(1))=(rise)/(run)](https://img.qammunity.org/2021/formulas/mathematics/middle-school/efuss9b6efpg9ioigv3faf0709z7i73v3r.png)
Rise over run is the change in the y-axis over the change in the x-axis. Insert values:
![(7-(-5))/(4-(-2))](https://img.qammunity.org/2021/formulas/mathematics/middle-school/ild6rw5gaqkxkmuxcwnoiqsj8euhx2ldgv.png)
Simplify parentheses (negative+negative=positive)
![(7+5)/(4+2)](https://img.qammunity.org/2021/formulas/mathematics/middle-school/flfqeif43x1bk6afvlj2nzgtdfmyneca5m.png)
Simplify
![(12)/(6)=2](https://img.qammunity.org/2021/formulas/mathematics/middle-school/kdu2c5gc27i74elmlea0agx1uhqige2ls8.png)
2 is the slope:
![y=2x+b](https://img.qammunity.org/2021/formulas/mathematics/college/zqdqdnd6j96478mbmd7fr5eshgpr0y5bmk.png)
Now use one of the points to find the y-intercept by substituting the x and y values into the equation. Solve for b:
(4,7)
![y=2x+b\\7=2(4)+b](https://img.qammunity.org/2021/formulas/mathematics/middle-school/vacn5iyw2h871pwe4bqrvvd01c54i8ejdk.png)
![7=8+b\\7-8=8-8+b\\7-8=b\\-1=b\\b=-1](https://img.qammunity.org/2021/formulas/mathematics/middle-school/11fvoierlzfistiikp00ctuormvdr3dmus.png)
The y-intercept is -1. Insert into the equation. Change the + symbol to -:
![y=2x-1](https://img.qammunity.org/2021/formulas/mathematics/middle-school/kol5q574s8araabx1cmy6rfn2e3wb91zee.png)
Done.