Answer: A, B, D
The phosphate precipitates Mg2+ as the white crystalline salt Mg(NH4)PO4 only when ammonium ions and ammonia are available, and the salt is soluble in acids because phosphate is protonated. Ignition gives Mg2P2O7 with loss of NH3 and water. The salt is white, not yellow.