The two masters and apprentices jointly processed a batch of parts. The master made 640 pieces, 40 more than the apprentice made 1.5 times. How many parts did the master and apprentice process in total?
师徒二人共同加工一批零件．师傅做了640个，比徒弟做的1.5倍多40个，师徒一共加工了多少个零件？
<gadget id="calculator">640 - 40</gadget>
<output>600</output>

<gadget id="calculator">600 / 1.5</gadget>
<output>400</output>

<gadget id="calculator">400 + 640</gadget>
<output>1_040</output>

<result>1_040</result>