Given the solubility curve of the material, it is assumed that any two solid materials are present, and it is possible to simulate how much it melts and how much is deposited depending on the temperature.
If you follow it a few times, you will understand the solubility curve without difficulty.