Dr. Long bought some apples and distributed them to his students. If each person gets 8 apples, there will be 6 more apples; if half of the students get 7 apples each, and the rest of the students get 10 apples each, then it is just finished. So, how many apples did Dr. Long buy in total?
龙博士买了一些苹果分给自己的学生．若每人分8个，则多了6个苹果；若一半的学生每人分7个，剩下的学生每人分10个，则正好分完．那么，龙博士一共买了多少个苹果．
<gadget id="calculator">1 / 2</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">(1/2) * 7</gadget>
<output>7/2 = around 3.5</output>

<gadget id="calculator">(1/2) * 10</gadget>
<output>5</output>

<gadget id="calculator">5 - 8</gadget>
<output>-3</output>

<gadget id="calculator">(7/2) + (-3)</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">6 / (1/2)</gadget>
<output>12</output>

<gadget id="calculator">12 * 8</gadget>
<output>96</output>

<gadget id="calculator">96 + 6</gadget>
<output>102</output>

<result>102</result>