Part (a)
[tex](f \circ g)(x)=f(g(x))=f(5x)=\boxed{5x-1}[/tex]
This is a linear function, so the domain is all real numbers.
Part (b)
[tex](g \circ f)(x)=g(f(x))=g(x-1)=5(x-1)=\boxed{5x-5}[/tex]
This is a linear function, so the domain is all real numbers.