The perimeter of a rectangle is equal to the perimeter of a square. Given that the length of the rectangle is 24 cm and the width is 16 cm, what is the area of the square?
一个长方形周长和一个正方形周长相等，已知长方形长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>