If $A = \{a,b,c,d\}$ , then $|A\times A| = 16$ and there are $12$ ordered pairs in the form of $(x,y)$ where $x\neq y$.
From this how does the textbook get the answer $$4^4 \cdot 4^6 = \text{number of commutative closed binary operations on $A$}$$? I am very confused.
Is it because there are four choices for each of the assignments of x and y where x equals y(4) and 4 choices for the assignments of x and y where they dont equal esch other(6)?