There are 24 kilograms of chocolate and 32 kilograms of toffee. Put them in small bags. There must be two kinds of sugar in each small bag, and there is no extra sugar. How many bags are there at most?
有24千克的巧克力和32千克的奶糖，把放在小袋里，每个小袋里必须有两种糖，并且没有多余的糖，袋的个数最多有多少个？
<gadget id="calculator">2 * 2 * 2</gadget>
<output>8</output>

<result>8</result>