The relation is a function since for every x-values there is a y-value associated with it and moreover, every x-value has only one y-value associated with it.
The range of the function are the values of the x-variable, therefore, the ranges is:
The domain is the values of y, that is: