For x^2 - 4, the domain is neg infinity to 2, exclusive, and so the range of h(x) = 2x has to be at most that. So, what domain corresponds to a range of neg infinity to 2, exclusive, for 2x?
You just solve y = 2x, 2 = 2x, x = 1. So x has to be less than 1 (i.e. from neg infinity to 1 exclusive).
Because as you know with composite functions, ran h(x) has to be a subset of dom f(x) and the dom of the new foh(x) function will be the dom of h(x).
Same deal with the other one. What range corresponds to a domain of [2,inf) for 2x? obviously 2x has to be greater than or equal to 2, so x has to be greater than or equal to one, and so the dom of the second part of the hybrid function is from 1 to positive infinity inclusive.
(Sorry no LaTeX I'm on my iPad + lazy).