p*V=n*R*T <=> (p*V/T)=n*R <=> (p*V/T)=constant

<=> p=(constant*T)/V (2)

<=> V=(constant*T)/p (3)

(1)=>(2): T*V^(γ-1)=constant (4)

(1)=>(3): p^(1-γ)*T^(γ)=constant (5)

I can't understand how we went from equation (5) to this equation: p^[(1-γ)/γ]*T=constant

It's a^(1-x)*b^(γ)=a^[(1-x)/x)]*b?

Sorry for this stupid question but I am very new to this.

Thank you in advance!