Cartesian product

In mathematics, sets can be used to make new sets. Given two sets "A" and "B", the Cartesian product of "A" with "B" is written as "A × B", and is the set of all ordered pairs whose first element is a member of "A", and whose second element is a member of "B". 
For example, let "A" = {1, 2, 3} and "B" = {a, b}. Then:
The set of a Cartesian product can be visualized as a two-dimensional table, with its entry being its elements.