A 40 meters rope was cut into 2 parts in the ratio of 2:3. How long is the shorter part?
The rope was cut into 2 + 3 = 
<gadget id="calculator">2+3</gadget>
<output>5</output>
5 parts.
So each part is 40/5 = 
<gadget id="calculator">40/5</gadget>
<output>8</output>
8 meters long.
Since the shorter part is consists of 2 parts, then it is 8 x 2 = 
<gadget id="calculator">8*2</gadget>
<output>16</output>
16 meters long.

<result>16</result>