what is the domain of the function. PLS HELP WILL MARK BRAINLIEST AND ACTUALLY GIVE THE RIGHT ANSWER PLS

Your answer is correct, but your interval is switched up.
You just want ( –infinity, 2).
Interval notation always goes from negative to positive (or "left to right" on the number line).