(a) 2 molecules of hydrogen.
A saturated open-chain hydrocarbon (an alkane) has the formula CnH2n+2. X is CnH2n−2, so it is short by
(2n+2)−(2n−2)=4 hydrogen atoms
Four hydrogen atoms are two molecules of H2, so one molecule of X takes up two molecules of hydrogen to become saturated.
(b) One molecule of H2 is added across each double bond, which then becomes a single bond. Two molecules of H2 can therefore be taken up in exactly two ways:
- two carbon–carbon double bonds (one H2 for each), or
- one carbon–carbon triple bond (two H2 for the one bond).
For n=4, C4H6:

Structure I is CH2=CH−CH=CH2 and structure II is CH≡C−CH2−CH3. Count the bonds: every carbon has four, and each structure has 6 hydrogen atoms. Both take up 2 molecules of hydrogen to become butane, C4H10.
A single double bond is not enough: one C=C accounts for only two missing hydrogen atoms and would give CnH2n, the alkene formula, not the one in the question.