So what makes a function a function is that each input (x) only has one output (y).
Set A is not a function because when x = 2, y = -2 and 3.
Set B is not a function because when x = 9, y = 3 and -3.
In short, the correct option is "Neither A nor B".