15 POINTS WILL GIVE BRAINLIEST
Find the range of the following piecewise function.
f(x){x^2+2 if -5≤x<3}
f(x){x-4 if 3≤x<7}
[27,3)
(-22,3]
(27,3]
[-22,3)