No it is not a function because the 2 repeats and for it to be a function none of the x values can repeat.
The domains are -8, 0, 2, 2, 7 (when it asks for domain it is asking for the x values)
The ranges are 7, 1, -6, 3, 9 (when it asks for range it is asking for the y values)