Teacher Li goes to the store to buy table tennis balls. If he buys 6 sets, there will be 2 yuan left, and if he buys 7 sets, the difference will be 6 yuan. How much did Mr. Li bring in total?
李老师去商店买乒乓球，如果买6副则还剩2元，如果买7副则还差6元．李老师一共带了多少钱？
<gadget id="calculator">2 + 6</gadget>
<output>8</output>

<gadget id="calculator">7 - 6</gadget>
<output>1</output>

<gadget id="calculator">8 / 1</gadget>
<output>8</output>

<gadget id="calculator">8 * 6</gadget>
<output>48</output>

<gadget id="calculator">48 + 2</gadget>
<output>50</output>

<result>50</result>