The point-slope form:
[tex]y-y_1=m(x-x_1)[/tex]
m - slope
(x₁, y₁) - point
The formula of a slope:
[tex]m=\dfrac{y_2-y_1}{x_2-x_1}[/tex]
We have the points (2, 1) and (4, 7). Substitute:
[tex]m=\dfrac{7-1}{4-2}=\dfrac{6}{2}=3[/tex]
[tex]\boxed{y-1=3(x-2)}[/tex] point-slope form
[tex]\boxed{y=3x-5}[/tex] slope-intercept form
[tex]\boxed{3x-y=5}[/tex] standard form