There are the same number of chickens and rabbits in the cage, and there are 24 legs in total. How many chickens and rabbits are there in each?
笼子里鸡和兔的只数相同，共有24条脚，鸡和兔各有多少只？
<gadget id="calculator">24 / 3 / 2</gadget>
<output>4</output>

<result>4</result>