Given, f(x)=x+25,gof(x)=x−3
g(x+25)=x−3 ....(i)
Thus x+25=z
⇒x=5z−2
Substituting in (i), we get
g(5z−2+25)=5z−2−3⇒g(z)=5(z−1)⇒g(x)=5(x−1)