Can you please help me know which sets of values belong to the Domain and range of a relation?

In general, a function is given as shown below
[tex]\begin{gathered} f:A_1\rightarrow A_2 \\ f(x)\in A_2 \\ A_1,A_2\rightarrow sets \\ A_1\rightarrow\text{ domain} \\ A_2\rightarrow codomain \end{gathered}[/tex]The domain of the function consists of the values that x can take in the example above. All the values of x make up all the possible input values, and x is also known as the independent variable.