A.
The domain of a function is the complete set of possible values of the independent variable:

The range of a function is the complete set of possible values of the dependent variable:

A function is a specific type of relation in which each input value has one and only one output value.
Since:
(-5,4) and (-5,4) and (1,2) and (1,-2) belong to the relation. We can conclude that the relation is not a function.
B.

Since:

We can conclude that the relation is a function