The equation of a line with a slope of zero that passes through the point (-2, 12) is y = 12.
How to find the linear equation?
The general linear equation in the slope-intercept form is written as:
y = ax + b
Where a is the slope and b is the y-intercept.
Here we know that the slope is zero, so we can write:
y = 0*x + b
y = b
And this must pass through (-2, 12), then we must have:
12 =b
Then the linear equation is y = 12.