What is the equation of the line described below written in slope-intercept form?

the line passing through point (2, 2) and perpendicular to the line whose equation is y = x

y = x - 4
y = x + 4
y = -x + 4