The correct option is A X > Y > Z
The ease of abstraction of H from a compound depends on the stability of the conjugate base formed.
More the stable of conjugate base, more will be the ease of abstraction of H+.
Comparing (X) and (Y)
Compound (X) is more stable than (Y) because it have 3 equivalent resonating structures whereas (Y) has only 2 equivalent resonating structures. Since, the number of resonating structure will increase the stability of compounds.
Thus, conjugate base formed by (X) is more stable and more reactive.
Hence, the correct order of acidic nature is
(X) > (Y) > (Z)