Xor profit problem

int the given custom output xor of 5 and 6 is only 2 know why it is 3?