What is the realtionship between the second law of thermodynamics and Gibbs free energy

below and ahead