The equation of a line is y = mx + b [m is the slope, b is the y-intercept or the y value when x = 0 ----> (0, y) or the point where the line goes through the y-axis]
To find the slope, you use the slope formula (m):
[tex]m=\frac{y_2-y_1}{x_2-x_1}[/tex] and plug in 2 points
I will use the points (0, 0) and (1, 8)
(0, 0) ----> (x₁, y₁)
(1, 8) ----> (x₂, y₂)
[tex]m=\frac{y_2-y_1}{x_2-x_1}[/tex]
[tex]m=\frac{8-0}{1-0}[/tex]
m = 8
Since you know m, plug it into the equation.
y = 8x + b
The graph shows that the y-intercept is 0, so plug it into the equation
y = 8x