find the Range and Domain of the Binary relations

Answer:
A = {3,5,6}
B = {1,3}
A x B = {(3,1),(3,3),(5,1),(5,3),(6,1),(6,3)}
Domain of A x B = (The x figures in ascending order)
=> {3,5,6} (Figures repeating more than once must be written only 1 time)
Range of A x B = (The y figures in ascending order)
=> {1,3}
B x A = {(1,3),(3,3),(1,5),(3,5),(1,6),(3,6)}
Domain of B x A = {1,3}
Range of A x B = {3,5,6}