Upon treatment with ammoniacal , the metal ion that precipitates as a sulfide is
On treatment with H2S, Zn(II) gets precipitated as ZnS. Mg(II) does not get precipitated, while Fe3+ and Al3+ get precipitated as hydroxides.
Tagged Group analysis and confirmatory tests of cations. Machine-assigned, so read it as a strong shortlist rather than a verdict.