It is the intersection of these two segments: [-5,5] (where first sqrt is defined) and (-infinity,2] (where second sqrt is defined). Finally, the domain is this segment [-5,2] of the length 7.