I ran into the following problem, wherein I'm asked to find the simplest formula of a compound containing $50 \%$ of element $X$ (atomic wt. 10) and $50\%$ of element $Y$ (atomic wt. 20).
I know about few laws of chemical combinations. I think Law of Definite Proportions may come into play.
$$\text{atomic wt. }X:\text{atomic wt. } Y=1:2\implies XY_2$$
Am I correct in my reasoning? If not kindly point out the flaws, if any? Thanks