A rule of thumb
In general, substances that have similar intermolecular forces have strong solute-solvent interactions and tend to form solutions.
Polar compounds dissolve in polar compounds and nonpolar compounds dissolve in nonpolar compunds.
Gasoline dissolves grease
Salts dissolve in water
Grease does not dissolve in water
Salt does not dissolve in gasoline