Identify the compounds A, X and Z in the following reactions

Identify the compounds A, X and Z in the following reactions

Complete the following chemical equations