Hey there
It's a chemistry rule that like dissolves like but there are exceptions. See those compounds which can make hydrogen bonding behave as polar and thus can dissolve polar compounds. The solubility however depends upon the difference in electronegativity between the atoms.
Hope you understand
Good luck
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile