There is a bag of candies, the total number of which does not exceed 30. These candies can be distributed to 3, 6, or 8 children on average. How many candies are there in this bag?
有一袋糖，总数不超过30颗，这些糖可以平均分给3个、6个、8个小朋友．这袋糖一共有多少颗？
<gadget id="calculator">2 * 2 * 2 * 3</gadget>
<output>24</output>

<result>24</result>