
                ### Instruction: help me answer this question If G = {7, 8} and H = {5, 4, 2}, find G × H and H × G., think step by step
                ### Assistant: Given, G = {7, 8} and H = {5, 4, 2}
We know that
The Cartesian product of two non-empty sets, P and Q, is given as
P × Q = {(p, q): p ∈ P, q ∈ Q}
So,
G × H = {(7, 5), (7, 4), (7, 2), (8, 5), (8, 4), (8, 2)}
H × G = {(5, 7), (5, 8), (4, 7), (4, 8), (2, 7), (2, 8)} , The answer is [(7, 5), (7, 4), (7, 2), (8, 5), (8, 4), (8, 2)], [(5, 7), (5, 8), (4, 7), (4, 8), (2, 7), (2, 8)]
