To find the equation of a line you need to know the slope (m) and the y-intercept (b):

With the given points (x,y) you can calculate the slope using the next formula:

(3,4) x1= 3 y1= 4
(1, -2) x2=1 y2= -2

m= 3
You use one of the given points (x,y) to find the y-intercept as follow:
(3,4) x= 3 y= 4

b= -5
Then, the equation of the line that passes through the points (3, 4) and (1, - 2) is:
