the snacks inside the green box inside the yellow box
the snacks inside the green box inside the yellow box
「黄色い箱の中の緑の箱の中のお菓子」
the snacks in the green box, which is inside the yellow box
「黄色い箱の中にある緑の箱の中のお菓子」
上記のように表現することができます。
the snacks inside ~ で「〜の中のお菓子」という意味になります。
お役に立てれば嬉しいです。