Yang Yang lent half of his extracurricular books to Xiaoguang, and took out half of the remaining books and lent one to Xiaohong. At this time, Yang Yang still had 8 books left. How many books did Yang Yang have?
杨阳将自己的课外书借给小光一半多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>