It is known that the greatest common factor of two numbers is 8, the least common multiple is 120, and one of them is 24, what is the other number?
已知两个数的最大公因数是8，最小公倍数是120，并且其中的一个数是24，求另一个数是多少？
<gadget id="calculator">120 / 24</gadget>
<output>5</output>

<gadget id="calculator">5 * 8</gadget>
<output>40</output>

<result>40</result>