Calculation of Ksp and formation of a saturated solution