If the perimeter of an isosceles triangle is 40 cm and the ratio of two adjacent sides is 1:2, what is the total length of the two sides in cm?
一个等腰三角形周长是40厘米，且相邻两边之比是1：2，两腰共长多少厘米．
<gadget id="calculator">2 / 1</gadget>
<output>2</output>

<gadget id="calculator">2 / 1 / 2 / 1 / 1</gadget>
<output>1</output>

<gadget id="calculator">2 + 2 + 1</gadget>
<output>5</output>

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

<gadget id="calculator">8 * 2 * 2</gadget>
<output>32</output>

<result>32</result>