The correct option is C x+y=5
Given line : y=x
⇒ Slope is 1,
If two lines are perpendicular, then product of their slopes =−1
So, slope of the line perpendicular to given line is −1.
Therefore, equation of line passing through (3,2) and having slope −1 is
y−2=−1(x−3)
⇒y−2=−x+3
∴x+y=5
Hence, option (B) is correct.