The equation of a horizontal line is of the form \( y = c \), where \( c \) is a constant that represents the y-coordinate of any point on the line. Since the line must pass through the point (–2, 2), the equation of the line is:
\[ y = 2 \]
So, the correct answer is:
y = 2.