Xiao Ming's extracurricular books are 6 times that of Xiao Fang's. If they both take away 2 books, Xiao Ming's existing extracurricular books are 8 times that of Xiao Fang's. How many extracurricular books does Xiao Ming have?
小明的课外书是小芳的6倍，如果两人各拿走2本后，小明现有的课外书就是小芳的8倍，小明原有课外书多少本？
<gadget id="calculator">8 * 2</gadget>
<output>16</output>

<gadget id="calculator">16 - 2</gadget>
<output>14</output>

<gadget id="calculator">8 - 6</gadget>
<output>2</output>

<gadget id="calculator">14 / 2</gadget>
<output>7</output>

<gadget id="calculator">6 * 7</gadget>
<output>42</output>

<result>42</result>