The number two is a function
First rule of function: for each element of A there is one and only one element of B
For example, in the first one -5 is "collegated" to -2 and 3. So this isn't a function.
Naturally, every element of B can have more element of A