From the given data we know that X belongs to oxygen family. So, X possesses valency of 2. When X reacts with hydrogen it forms H₂X. Thus, the molecular formula of the compound is H₂X. Electron dot structure can be represented as shown in figure: [Diagram of electron dot structure would be included here. Since I cannot create images, a textual representation is not possible. The diagram would show two hydrogen atoms each sharing a single electron pair with the central X atom, which would have six additional electrons represented as lone pairs.]