An equation of the line that is shown in the graph passing through the points (-2, -8) and (0, 12) is y = 10x + 12.
In Mathematics and Geometry, the point-slope form of a straight line can be calculated by using the following mathematical equation (formula):

Where:
- x and y represent the data points.
- m represent the slope.
First of all, we would determine the slope for this line by using these points (-2, -8) and (0, 12);

Slope (m) = (12 - (-8))/(0 - (-2))
Slope (m) = (12 + 8)/(0 + 2)
Slope (m) = 20/2
Slope (m) = 10.
At data point (0, 12) and a slope of 10, an equation for this line can be calculated by using the point-slope form as follows:
y - 12 = 10(x - 0)
y = 10x + 12