To find the equation of a line you need to know the slope (m) and the y-intercept (b):
[tex]y=mx+b[/tex]With the given points (x,y) you can calculate the slope using the next formula:
[tex]m=\frac{(y_2-y_1)}{(x_2-x_1)}[/tex](3,4) x1= 3 y1= 4
(1, -2) x2=1 y2= -2
[tex]m=\frac{-2-4}{1-3}=\frac{-6}{-2}=3[/tex]m= 3You use one of the given points (x,y) to find the y-intercept as follow:
(3,4) x= 3 y= 4
[tex]\begin{gathered} y=mx+b \\ 4=3(3)+b \\ 4=9+b \\ 4-9=b \\ -5=b \end{gathered}[/tex]b= -5Then, the equation of the line that passes through the points (3, 4) and (1, - 2) is:
[tex]y=3x-5[/tex]