Answer:
f(x) = √(5-x)
Explanation:
The square root is only defined for non-negative arguments. Here, we give it an argument that is only non-negative for x ≤ 5, thus satisfying the requirement for your function. The attached shows a table of values and a graph of it.