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