When metal X is treated with sodium hydroxide, a white precipitate (A) is obtained, which is soluble in excess of NaOH to give soluble complex (B). Compound (A) is soluble in dilute HCl to form compound (C). The compound (A) when heated strongly gives (D), which is used to extract the metal. Identify (X), (A), (B), (C) and (D). Write suitable equations to support their identities.