It is a linear function. If you simplify the equation further:
y = 3^2 - x + 5
y = 9 - x + 5
y = -x + 14 (this is the slope-intercept form, y = mx + b).
Also, the highest degree term is 1, making it linear (the 3^2 is a constant).
Please mark my answers as the Brainliest if you find my explanation helpful :)