First, we need to determine the slope of the line. The slope can be found by using the formula: m = (color(red)(y_2) - color(blue)(y_1))/(color(red)(x_2) - color(blue)(x_1))m=y2−y1x2−x1
Where mm is the slope and (color(blue)(x_1, y_1)x1,y1) and (color(red)(x_2, y_2)x2,y2) are the two points on the line.
Substituting the values from the points in the problem gives:
m = (color(red)(-2) - color(blue)(4))/(color(red)(0) - color(blue)(8)) = (-6)/-8 = 3/4m=−2−40−8=−6−8=34
We know from the point (0, -2)(0,−2) the yy-intercept is -2−2. The yy-intercept is the point where x = 0x=0 and the line crosses the yy-axis.
We can use the slope-intercept formula to write and equation for the line. The slope-intercept form of a linear equation is: y = color(red)(m)x + color(blue)(b)y=mx+b
Where color(red)(m)m is the slope and color(blue)(b)b is the y-intercept value.
Substituting the slope we calculated and the yy-intercept value gives:
y = color(red)(3/4)x + color(blue)((-2))y=34x+(−2)
y = color(red)(3/4)x - color(blue)(2)y=34x−2