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