Let X and Y be two elements. The formula of a compound made up of X and Y is X2Y3. For a molecule of the compound, the ratio between the Y and X atoms is:
X2Cl
The formula of a compound having its constituents as X and Y is X2Y3. So according to the given formula X has 2 atoms and Y has 3 atoms. Therefore, the ratio of Y:X is 3:2.