Answer :
Given that the mass ratio of elements X to Y in the compound XY is 1 : 35.5, it means:
1\,\text{g of }X \text{ combines with }35.5\,\text{g of }Y.
Hence, if we have 2\,\text{g of }X, then the mass of Y required will be:
2 \times 35.5 = 71\,\text{g}.
\boxed{71\,\text{g of } Y} will combine with 2\,\text{g of }X.