find (f o g) (x) and (g o f) (x) and the domain of each. f(x)=x+5, g(x)=x-5

We are given the following two functions
[tex]\begin{gathered} f(x)=x+5 \\ g(x)=x-5 \end{gathered}[/tex]First, let us find out (fog) (x)
[tex]\begin{gathered} (f\circ g)(x)=(x-5)+5 \\ (f\circ g)(x)=x-5+5 \\ (f\circ g)(x)=x \end{gathered}[/tex]The domain is all the possible values of x.
[tex]domain=(-\infty,\infty)[/tex]Similarly, let us find out (gof) (x)
[tex]\begin{gathered} (g\circ f)(x)=(x+5)-5 \\ (g\circ f)(x)=x+5-5 \\ (g\circ f)(x)=x \end{gathered}[/tex]The domain is all the possible values of x.
[tex]domain=(-\infty,\infty)[/tex]