Equation is y = 2x + 2
Step-by-step explanation:
Find slope of the line using the formula m = (y2 - y1)/(x2 - x1)
Here, x1 = -2, x2 = 4, y1 = -2, y2 = 10
⇒ m = (10 - -2)/(4 - -2) = 12/6 = 2
Slope-intercept form equation is y = mx + b
⇒ y = 2x + b
Find the y-intercept, b. Since the line passes through (4, 10) substitute values of x = 4 and y = 10 to find b.
⇒ 10 = 2 × 4 + b = 8 + b
⇒ b = 2
Form the equation
⇒ y = 2x + 2