I having problem how to interpret the definition of the cartesian product.
The cartesian product of two sets $A$ and $B$ is the set of all ordered pairs $(a,b)$, where $a\in A$ and $b\in B$. \begin{align} A\times B=\{(a,b): a\in A \text{ and } b\in B\} \end{align}
I understand if $A=\{2\}$ and $B=\{5\}$, we have $A\times B=\{(2,5)\}$. No problem.
But suppose $A=\{3,4\}$ and $B=\{7,8\}$, I interpret the definition as $$A\times B=\{(3,7),(4,8)\}$$ This is wrong, but what have I misunderstood in the definition? How should I analyze the definition word by word?
I know the correct is $A\times B=\{(3,7),(3,8), (4,7), (4,8)\}$. However, I dont' grasp why this is correct based on the definition.
The elements of $A\times B$ are all the pairs that have the first element (of the pair) from $A$ and the second element (also of the pair) from $B$.
A typical example: imagine that you have two T-shirts: red and blue, and three trousers: white, green and black. You can dress in six ways: $$\{\text{red, blue}\}\times\{\text{white, green, black}\}=\\ \{\text{(red, white), (red, green), (red, black), (blue,white), (blue, green), (blue, black)}\}$$