The master and the apprentice processed the same batch of parts, the master processed 102 parts, and the apprentice processed 40 parts. At this time, the remaining number of apprentices is three times that of the master. How many parts does the master need to process?
师徒两人加工同样多的一批零件，师傅加工了102个，徒弟加工了40个．这时，徒弟剩下的个数是师傅剩下的3倍．师傅要加工多少个零件？
<gadget id="calculator">3 * 102</gadget>
<output>306</output>

<gadget id="calculator">306 - 40</gadget>
<output>266</output>

<gadget id="calculator">3 - 1</gadget>
<output>2</output>

<gadget id="calculator">266 / 2</gadget>
<output>133</output>

<result>133</result>