Prolonged heating of a sample of some phenol X weighing 1.1 g with an excess of ammonia solution of Ag2O produces 2.16 g of silver. Boiling the same phenol with aqua regia results in the formation of a yellow, insoluble compound Y containing Cl 57.7% and C 29.3% (by mass). Adding 1.23 g of substance Y to an excess of KI solution causes a brown color, which disappears when 4 ml of 1.25 mol/L K2SO3 solution is added. Heating of substance Y with cyclohexa-1,4-diene leads to the formation of two compounds A and B, which are resistant to bromine water. Set the structural formulas of compounds X and Y, A and B. Write the equation for the reactions