Silica reacts with Mg to form a magnesium compound A. A reacts with dilute HCl and forms B. The compound B is: