y = 3x - 2
The equation of a line in slope-intercept form is y = mx + b, where m is the slope of the line and b is the y-intercept.
To find the slope of the line, we can use the following formula:
m = (y2 - y1) / (x2 - x1)
Plugging in the coordinates (2,4) and (-2,-8) into the formula:
m = (-8 - 4) / (-2 - 2) = -12/ -4 = 3
We can use one of the coordinates to find the y-intercept.
Plugging in the point (2,4) and the slope 3 into the equation y = mx + b, we get:
4 = 3*2 + b
so b = -2
Therefore, the equation of the line is y = 3x - 2.