Just dissolve all three compounds in an organic solvent which not miscible with water (those two I have mentioned) in separatory funnel. Use aqueous sodium bicarbonate first to extract. If you use sodium hydroxide, both phenol and benzoic acid will be extracted as both can react with hydroxide