The correct option is B a subset of
The function f in f(g(x)) gets the values that are given by g(x). So all values in the range of g(x) should be in the domain of f(x). If this is not the case, then g(x) will give values for which f(x) is not defined, and as a result f(g(x)) will not be defined for those values of x.
Thus, the range of g(x) should be a subset of the domain of f(x)