Elements X and Y form two non-volatile compounds (XY and XY$_2$). When 10 g of XY is dissolved in 50 g of ethanol, the depression in freezing point ($\Delta T_f$) was 5.333 K. When 10 g of XY$_2$ is dissolved in 50 g of ethanol, the $\Delta T_f$ was 2.2857 K. What are the atomic weights of X and Y respectively?
($K_f = 2 \, \text{kg mol}^{-1}$)