The slope of a line that passes through points (x1, y1) and (x2, y2) is:
[tex]m=\frac{y_2-y_1}{x_2-x_1}[/tex]Replacing with the points (1, -2) and (2, 4),
[tex]m=\frac{4-(-2)}{2-1}=\frac{6}{1}=6[/tex]The slope-intercept form of a line is:
y = mx + b
where m is the slope and b is the t-intercept
Replacing with point (1, -2) and m = 6:
-2 = 6(1) + b
-2 = 6 + b
-2 - 6 = b
-8 = b
Then, the equation is:
y = 6x - 8