Compound X reacts with ethanoic acid, with a $\text{H}^+$ catalyst present, to form the compound shown below. What is the molecular formula of compound X?
- 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$