There is a bag of candy, which is between 30 and 50 yuan. If you distribute them equally to 6 students, you will finish the distribution, and if you distribute them to 8 students, you will finish the distribution. How many pieces of this bag of candy are there?
有一包糖，在30到50块之间，把它们平均分给6个同学恰好分完，分给8个同学，也恰好分完，这包糖有多少块？
<gadget id="calculator">2 * 2 * 2 * 3</gadget>
<output>24</output>

<gadget id="calculator">24 * 2</gadget>
<output>48</output>

<result>48</result>