This is a much more interesting problem than your first couple. It forces you to actually think about that the domain means. So this one is worth discussing.
To find the domain of
f∘g, first find the domain of g itself, which means to find what values of x "work" (and exclude those that do not). Then find the composite function, and do the same thing.
This is because
f∘g means that you first apply g (which only works when x is in its domain), and then apply f to the result
g(x), which only works when
g(x) is in the domain of f.
So, for your problem, when is the tangent defined (or not)? Then, what values of that tangent is f defined? That is, when will the square root not work?
The
graph mostly helps you see if your answer obtained analytically makes sense, and catch details you might have missed. I would not start there.
By the way, you are showing only your
answers (which are both wrong), not what I would call your
analysis. Show us your
thinking, and we'll have more to talk about.