Formation of a solution from two components can be considered as:
(i) Pure solvent → separated solvent molecules, ΔH1
(ii) Pure solvent → separated solute molecules, ΔH2
(ii) Separated solvent and solute molecules → solution, ΔH3
Solution so formed will be ideal if