Several elementary school students go to buy cakes. If each person buys K pieces, there are 6 cakes left in the cake shop. If each student buys 8 pieces, the last student can only buy 1 piece of cake. How many cakes are there in the cake shop? piece?
若干个小学生去买蛋糕，若每人买K块，则蛋糕店还剩了6块蛋糕，若每人买8块，则最后一名学生只能买到1块蛋糕，那么蛋糕店共有蛋糕多少块？
<gadget id="calculator">8 - 1</gadget>
<output>7</output>

<gadget id="calculator">6 + 7</gadget>
<output>13</output>

<gadget id="calculator">13 * 8</gadget>
<output>104</output>

<gadget id="calculator">104 - 7</gadget>
<output>97</output>

<result>97</result>