One bound of the function domain is
x1 + 5 = 7 ---> x1 = 7-5 = 2.
Other bound of the function domain is
x2 + 5 = 9 ---> x2 = 9-5 = 4.
The domain is [2,4].
When you write the info for the range, do not use these parentheses "{" and "}".
They are from other story.
Use these parentheses "(" and ")" or "[" and "]", or their combinations.