General chemistry 2 · Solutions and colligative properties
Whether two substances mix depends on how their molecules attract each other, and the same forces decide if dissolving warms or cools the mixture.