First of all, we solve function g(x):
[tex]\begin{gathered} g(x)=(3+x)(1+x) \\ g(x)=3+3x+x+x^2 \\ g(x)=x^2+4x+3 \end{gathered}[/tex]After that, we need to know that x will be inputs values, and all that values are the "domain". In this case, you can put all real numbers like x value, then the domain of g(x) will be all real numbers.