The diagram shown above represents the solubility curves of two salts, X and Y, in…