Describe how one would obtain the stated pure product from the following mixtures and assume that this cannot be achieved simply by distillation of the original mixture:

1. benzoic acid from a mixture with ammonium benzoate
2. phenylamine from a mixture with nitrobenzene, HCl and tin (IV) chloride.