The line which represents the equation x = 5 is a vertical line that passes through any point hax x-coordinate of 5
Then the perpendicular line to this line must be a horizontal line
The equation of any horizontal line is y = b, where
b is the y-coordinate of any point that lies on the line
Since the line passes through the point (-2, 2), then
b = 2
Then the equation of the line is
y = 2