The compounds CH4, CH3 CH3 and CH3CH2CH2CH2CH2CH3, do not have -OH groups linked to C atoms, so they are not polar, and based of the criterium given they will not interact well with water, meaning they will not easily dissolve in water. On the other hand, CH3OH and CH3CH2CH2OH meet the criterium of polarity (they contain the group -OH) so these two substances (alcohols) will easily dissolve in water. So you have to check the options B. and D.