Chickens and rabbits are in the same cage. There are exactly the same number of chickens and rabbits inside. There are 240 legs in total. How many chickens and rabbits are there?
鸡，兔同在一个笼子里，里面的鸡和兔的只数正好相等，共有腿240条，则鸡兔各有多少只？
<gadget id="calculator">2 + 1</gadget>
<output>3</output>

<gadget id="calculator">240 / 3 / 2</gadget>
<output>40</output>

<result>40</result>