The equation of a line with slope m and y-intercept b in slope-intercept form is:

Use the slope formula to find the slope of the line that passes through two points:

Replace the coordinates of the points (3,7) and (2,1):

Replace the value of m into the equation of the line in slope-intercept form:

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:

Therefore, the equation of the line that passes through the points (2,1) and (3,7) in slope-intercept form, is:
