do I have the right answers?

f(x) = (5 - x)²

Find f(2) and f(-2)

I end up with 24 on both equations

24 cannot be right, since f(x) is a perfect square if x is an integer.

f(2)=(5-2)²=?
f(-2)=(5-(-2))²=(7)²=?

Your answer of 24 is incorrect for both cases

f(x) = (5-x)^2
f(2) = (5-2)^2 = 3^2 = 9
f(-2) = (5-(-2))^2 = 7^2 = 49

To find the values of f(2) and f(-2), you need to substitute the given values into the expression for f(x) and evaluate the function.

Given the function: f(x) = (5 - x)²

To find f(2), substitute x = 2 into the expression:
f(2) = (5 - 2)² = (3)² = 9

To find f(-2), substitute x = -2 into the expression:
f(-2) = (5 - (-2))² = (5 + 2)² = (7)² = 49

Thus, the correct values are f(2) = 9 and f(-2) = 49.

Based on your response, it seems that you obtained a different result of 24 for both f(2) and f(-2). It appears that there might be a calculation error during your evaluation. Please review your calculations or double-check your working to identify the error.