Solution:
Concept: A metal nitride reacts with warm water to give ammonia and the metal hydroxide. The nitride ion takes hydrogen from water and becomes ammonia, while the metal ends up as its hydroxide. Three properties of ammonia decide how it is handled: it is basic (so it is dried by a basic drying agent), it is lighter than air (vapour density 8.5, air 14.4) and it is extremely soluble in water (so it is never collected over water).
Step 1 — (a) Name X.
Aluminium nitride gives ammonia with water, so X, added slowly through the thistle funnel, is warm water.
Step 2 — (b) Write the balanced equation.
Aluminium nitride reacts with the warm water. Check: Al 1 = 1, N 1 = 1, H 6 = 6, O 3 = 3.
AlN+3H2O→Al(OH)3+NH3↑
Step 3 — (c) Identify Y.
The tower packed with lumps between the flask and the collecting end is a drying tower, so Y is quicklime (calcium oxide, CaO).
Step 4 — (d) State the function of Y.
Quicklime is a drying agent: it absorbs the moisture from the ammonia. Being basic, it does not react with ammonia, unlike conc. sulphuric acid or phosphorus pentoxide.
Step 5 — (e) Explain why no ammonia was collected.
The outlet tube from the tower dipped into water. Ammonia is extremely soluble in water (about 700 volumes in 1 volume of water), so the gas dissolved in the water in the beaker and none was left to collect. It should have been collected in an inverted gas jar by downward displacement of air, since it is lighter than air.

Watch out: Y is not conc. H₂SO₄ or anhydrous CaCl₂: both react with ammonia.
Therefore, (a) warm water; (b) AlN + 3H₂O → Al(OH)₃ + NH₃↑; (c) quicklime (CaO); (d) it dries the ammonia; (e) the outlet dipped into water and the highly soluble ammonia dissolved in it.