equilibrium is attained when ______