Equilibrium in Homogeneous and Heterogeneous Reactions