Given: P={a,b,c} and Q={r}
The cartesian product of two non-empty sets A and B is given as
A×B={(a,b):a∈A,b∈B}
So,
P×Q={(a,r),(b,r),(c,r)}
Q×P={(r,a),(r,b),(r,c)}
Since, by the definition of equality of ordered pairs, the pair (a,r) is not equal to the pair (r,a), we conclude that P×Q≠Q×P