The equation of the line is B=A or A=B. The line is 45° to the horizontal so it doesn't matter which axis is vertical or horizontal.
The shaded areas satisfy the inequality, and the sloping line is A=B or B=A. The unshaded areas don't satisfy the inequality.