Xiaohong, Xiaoli, and Xiaoliang share pencils. Xiaohong gets one more than half of the total, Xiaoli gets one more than the remaining half, and Xiaoliang gets 8. How many pencils do they have? ?
小红、小丽、小亮3人分铅笔，小红分得比总数的一半多一支，小丽分得比剩下的一半多一支，小亮分得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>