The compound X is represented by the option (B). The first step is dehydrohalgenation to form alkyne. Two molecules of HBr are eliminated. In the next step, the alkyne is reduced to trans alkene by treatment with sodium in liq ammonia. This is an example of birch reduction.