There is a basket of eggs, half of which is taken out for the first time and there are 2 more, and the remaining half is taken out for the second time and 3 more, and finally there are 17 eggs left in the basket. How many eggs were there in the basket?
有一篮鸡蛋，第一次取出全部的一半还多2个，第二次取出余下的一半多3个，最后篮子里还剩17个．篮子里原来有鸡蛋多少个？
<gadget id="calculator">17 + 3</gadget>
<output>20</output>

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

<gadget id="calculator">40 + 2</gadget>
<output>42</output>

<gadget id="calculator">42 * 2</gadget>
<output>84</output>

<result>84</result>