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
A. y = x - 4
B.y = x + 4 \
C. y = -x + 4