General 'rule' - "like dissolves like". The solubility
of a solute in a solvent (that is, the extent of the mixing of the
solute and solvent species) depends on a balance between the natural
tendency for the solute and solvent species to mix and the tendency for a
system to have the lowest energy possible.
Hope this helps :p