To determine the simplest formula for the compound formed by the reaction between magnesium (Mg) and element X with the given electron configuration, we need to understand the valency of each element involved.
Therefore, the correct option given is Mg3X2. The options in the question seem to contain an error, as Mg3X2 matches our derived formula based on the provided reasoning.