Computer calculation of the composition of equilibrium mixtures in solution