Ok, here goes 😛
You have a flask of compound A and a flask of compound B. Compound A makes strong intermolecular bonds with itself, and compound B makes strong intermolecular bonds with itself. However, compound A makes weak bonds with compound B. Assuming they are miscible with one another, if you mix compound A and compound B, you are breaking the strong intermolecular bonds of the two compounds with themselves (A-A / B-B) and forming weak intermolecular bonds between the two compounds (A-B). When you break a strong bond and form a weaker bond, heat is overall absorbed (endothermic / positive dH). However, since these compounds are dissolving one another, something has to be driving the spontanaeity of the reaction (the negative dG). This factor is entropy. There is more randomness when the two compounds are mixed with one another than isolated in their individual components (ABABABAB vs AAAABBBB). By dG = dH - TdS, when dH is positive and dS is positive, whether the reaction (solvation) is spontaneous (negative dG) is determined by the temperature of the solution. As temperature increases, the TdS factor increases until it eventually outweighs the dH component.