Transform the two equations into their slope-intercept form, as shown below
We say that two lines are parallel if they have the same slope; on the other hand, two lines are perpendicular if the product of their slopes is equal to -1.
The slope of x+y=5 is -1, and the slope of x-y=5 is 1; then,
Thus, the two lines are perpendicular.