In Chemistry 110 in regards to caffine lab. Why does caffine leave water and move to dicholormethane? Is oil on clothes soluable in dry cleaning

In Chemistry 110 in regards to caffine lab. Why does caffine leave water and move to dicholormethane? Is oil on clothes soluable in dry cleaning solvent? Does oil dissovle in water

what purpose does detergent serve?