How is the domain and range determined in the set?

Given the relation:
[tex]T=\mleft\lbrace(-2,-6),(3,9),(-6,9)\mright\rbrace[/tex]The domain is the set of all the first values in the relation, and the range is the set of all the second values. Then:
[tex]\begin{gathered} \text{domain }=\mleft\lbrace-6,-2,3\mright\rbrace \\ \text{range }=\mleft\lbrace-6,9\mright\rbrace \end{gathered}[/tex]