There are a total of 38 chickens in the three chicken cages. If 5 chickens are put into cage A, 3 chickens are taken out from cage B, and half of the chickens in cages are taken out from cage C, then the number of chickens in the three chicken cages The numbers are exactly equal, how many chickens were there in cage B?
三只鸡笼里共关着38只鸡，如果在甲笼里再放入5只，乙笼里再取出3只，丙笼里取出笼中鸡的一半，则三只鸡笼内鸡的只数正好相等，问乙笼里原来有鸡多少只？
<gadget id="calculator">38 - 3</gadget>
<output>35</output>

<gadget id="calculator">5 + 35</gadget>
<output>40</output>

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

<gadget id="calculator">40 / 4</gadget>
<output>10</output>

<gadget id="calculator">10 + 3</gadget>
<output>13</output>

<result>13</result>