JACQUES D. answered 05/23/22
Ivy league and MIT educated Chemical Engineer with career as teacher
Here's a link to an explanation. It is somewhat involved and that's with assumptions about the dominant species: https://www.colby.edu/chemistry/CH142/CH142A/SolubilityCalciumCarbonate.pdf