A rectangle and a square have the same perimeter. The length of the rectangle is 24 cm and the width is 16 cm. What is the area of the square in square centimeters?
一个长方形和一个正方形周长相等，长方形长是24厘米，宽是16厘米，正方形面积是多少平方厘米？
<gadget id="calculator">24 + 16</gadget>
<output>40</output>

<gadget id="calculator">2 / 4</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">40 * (1/2)</gadget>
<output>20</output>

<gadget id="calculator">20 * 20</gadget>
<output>400</output>

<result>400</result>