Check the sigma-profiles: Ibuprofen has a carboxylic acid group (strong σ-donor and acceptor) and a hydrophobic phenyl ring. Ethanol matches the H-bonding; hexane matches nothing.