Xiaohong, Xiaofang, and Xiaoming share pencils. Xiaohong gets 1 more than half of the total, Xiaofang gets 1 more than the remaining half, and Xiaoming gets 8. How many pencils are there in total?
小红、小芳、小明三人分铅笔，小红得的比总数的一半多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>