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