Two ropes with lengths of 24 cm and 18 cm are cut into equal pieces without any residue. What is the longest length of each piece in centimeters?
两根长分别是24厘米、18厘米的绳子截成相等的小段，没有剩余，每段最长是多少厘米．
<gadget id="calculator">2 * 3</gadget>
<output>6</output>

<result>6</result>