Compound $X$ reacts with ethanoic acid in the presence of an $\text{H}^+$ catalyst to form the compound shown. What molecular formula does compound $X$ have?
- A$\text{C}_2\text{H}_4\text{O}$
- B$\text{C}_2\text{H}_6\text{O}_2$
- C$\text{C}_4\text{H}_8\text{O}$
- D$\text{C}_4\text{H}_8\text{O}_2$