At equilibrium the free energy change is:
The free energy change is related to equilibrium constant as