Ethanol when reacted with PCl5 gives A, POCl3 and HCl. A reacts with silver nitrite to form B and AgCl . A and B respectively are