If the domain of the function, y=x^2 +2 is {0, 1, 2}, what is the range?

Please answer im crying

y(0) = 2

y(1) = 3
y(2) = 6
so [ 2 , 3 , 6 ]