General chemistry 2 · Solutions and colligative properties

Like dissolves like

Whether two substances mix depends on how their molecules attract each other, and the same forces decide if dissolving warms or cools the mixture.