A box contains marbles. When the marbles are counted in groups of 5, there are 2 marbles left over. When counted in groups of 6, there are 3 marbles left over. When counted in groups of 8, there are 5 marbles left over. What is the smallest number of marbles in the box? Let's think step by step and output the final answer within \boxed{}.
user