For a basket of oranges, pour out half of them first. Put another 5 kilograms into it, then put in the same amount of oranges as in the basket, and finally eat 8 kilograms. At this time, there are 22 kilograms of oranges in the basket. Ask: How many kilograms of oranges are in the basket?
一筐橘子，先倒出一半．再往里放入5千克，这时再放入和筐中橘子质量一样多的数量，最后吃掉8千克．此时筐中有22千克的橘子，问：筐中原有多少千克的橘子？
<gadget id="calculator">22 + 8</gadget>
<output>30</output>

<gadget id="calculator">30 / 2</gadget>
<output>15</output>

<gadget id="calculator">15 - 5</gadget>
<output>10</output>

<gadget id="calculator">10 * 2</gadget>
<output>20</output>

<result>20</result>