Well this isn't really the proper way to do it, but the quickest way to do it is to say that the atomic mass of tin and Iodine are pretty much the same, Sn is 118.71, I is 126.90447.
Ok so, with that in mind:
If 0.4650g of tin is used and 0.1230g is unreacted, then 0.342g does react.
So if 0.342g of your 1.802g of SnIx is tin, then 1.46g (1.802 - 0.342) of it is iodine.
Then to find the ratio of iodine to tin: 1.46 ÷ 0.342 ≈ 4.
So x = 4
NB. This only works if the atomic masses are roughly equal, I can't be bothered to do it the proper way.
[EDIT] Actually the proper way is steve's way, which includes the extra step of dividing by the atomic masses before finding the ratio.