A sample of a polymer has the following repeating unit:
--O----O--CO----CO--
where represents a benzene ring with substituents at the 1- and 4-positions.
(a) Describe the type of polymerisation that produces this polymer. In your answer, identify the monomers used and the by-product formed.
(b) A different polymer is produced from monomers X and Y. X is hexane-1,6-diamine and Y is hexanedioyl dichloride. Predict the type of polymerisation that occurs. Describe the structure of the polymer formed, including the linkage and any by-product.