well first of all, all of these are kind of like rules of thumb and won't work all the time.
Like dissolves like; a polar substance will dissolve in a polar substance, a nonpolar substance will dissolve in a nonpolar substance.
Gases can dissolve in polar substances, and to a lesser extent in nonpolar substances.
Ionic substances are usually more soluble in polar substances.
The solubility of a liquid in a liquid, liquid in a gas, or solid in a liquid is usually increased as temperature increases.
The solubility of a gas in a liquid is usually decreased as temperature increases.
All gasses will mix in all combinations. The gas that makes up most of the mixture is considered the solvent.
Some liquids will mix in all combinations. Same rule as the gases.