A and B are the logical inputs and X is the logical output shown in the figure. The output X is related to A and B by