A, B, and C share walnuts. A gets 1 more than half of the total, B gets 1 more than the remaining half, and C gets 8. How many walnuts are there?
甲、乙、丙三人分核桃，甲分得的比总数的一半多1个，乙分得的比剩下的一半多1个，丙分得8个，原有核桃多少个？
<gadget id="calculator">8 + 1</gadget>
<output>9</output>

<gadget id="calculator">9 * 2</gadget>
<output>18</output>

<gadget id="calculator">18 + 1</gadget>
<output>19</output>

<gadget id="calculator">19 * 2</gadget>
<output>38</output>

<result>38</result>