Aunt Li kept the chickens she raised in the east and west courtyards respectively. It is known that there are 40 chickens in the east courtyard. Now sell (1/4) of the chickens in the west courtyard to the store, (1/3) to the processing factory, and then add the remaining chickens, and the sum is exactly equal to the original number. , 50% of the total number of chickens raised in the West Two Hospitals. It turns out how many chickens were raised in the East and West courtyards.
李大娘把养的鸡分别关在东、西两个院内．已知东院内养鸡40只，现在把西院养鸡数的(1/4)卖给商店，(1/3)卖给加工厂，再把剩下的鸡相加，其和恰好等于原来东、西两院养鸡总数的50%．原来东、西两院一共养鸡多少只．
<gadget id="calculator">1 / 4</gadget>
<output>1/4 = around 0.25</output>

<gadget id="calculator">1 / 3</gadget>
<output>1/3 = around 0.333333</output>

<gadget id="calculator">(1/4) + (1/3)</gadget>
<output>7/12 = around 0.583333</output>

<gadget id="calculator">1 - (7/12)</gadget>
<output>5/12 = around 0.416667</output>

<gadget id="calculator">(7/12) - (5/12)</gadget>
<output>1/6 = around 0.166667</output>

<gadget id="calculator">40 / (1/6)</gadget>
<output>240</output>

<gadget id="calculator">240 + 40</gadget>
<output>280</output>

<result>280</result>