The thermodynamics of extraction equilibria