The equation of a line with slope m and y-intercept b in slope-intercept form is:
![y=mx+b](https://img.qammunity.org/2023/formulas/mathematics/high-school/smsb8cbft03lwblmi49nf2l6jby2ofxzws.png)
Use the slope formula to find the slope of the line that passes through two points:
![m=(y_2-y_1)/(x_2-x_1)](https://img.qammunity.org/2023/formulas/mathematics/high-school/78uaqhwt0aws3qfwxigaftpihnmb1gzxtp.png)
Replace the coordinates of the points (3,7) and (2,1):
![m=(7-1)/(3-2)=(6)/(1)=6](https://img.qammunity.org/2023/formulas/mathematics/high-school/mxeafgk9y8ueaxitfkmnwolad4rw57xe7l.png)
Replace the value of m into the equation of the line in slope-intercept form:
![y=6x+b](https://img.qammunity.org/2023/formulas/mathematics/high-school/e77znpku3fj9n78hzv9y7pf9zq6h0rq8jq.png)
To find the y-intercept, replace the coordinates of any of the given points and solve for b. For instance, use x=2 and y=1:
![\begin{gathered} 1=6(2)+b \\ \Rightarrow1=12+b \\ \Rightarrow1-12=b \\ \therefore b=-11 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/9y43w343fxri6exy4yip27zpy03544di9j.png)
Therefore, the equation of the line that passes through the points (2,1) and (3,7) in slope-intercept form, is:
![y=6x-11](https://img.qammunity.org/2023/formulas/mathematics/high-school/gvcaxgqozwpq6k2rlux3jy6vmer67w36r9.png)