Master Zhang and Master Wang each produced a batch of the same number of parts, and they started working at the same time. When Master Zhang produced half of the total number of parts, more than 40, he found that the total number produced by him and Master Wang was exactly the same. The total number of planned production. If Master Zhang produced 18 minutes later than Master Wang, then Master Zhang completed half of the task when Master Wang produced half, and when Master Zhang completed the task, Master Wang still had 72 parts to complete the task. How many parts are Master Zhang and Master Wang planning to produce?
张师傅和王师傅两人各自生产一批数量相同的零件，两人同时开始工作，当张师傅生产了总数的一半多40个时，这时发现他和王师傅生产的总数恰好就是一个人原计划生产的总数．如果张师傅比王师傅晚生产18分钟，则王师傅生产一半时张师傅也刚好完成任务的一半，并且当张师傅完成任务时，王师傅还差72个零件才能完成任务．张师傅和王师傅计划生产的零件数量各是多少个？
<gadget id="calculator">72 / 18</gadget>
<output>4</output>

<gadget id="calculator">40 * 4</gadget>
<output>160</output>

<gadget id="calculator">40 / 4</gadget>
<output>10</output>

<gadget id="calculator">18 - 10</gadget>
<output>8</output>

<gadget id="calculator">40 / 8</gadget>
<output>5</output>

<gadget id="calculator">40 * 5</gadget>
<output>200</output>

<gadget id="calculator">160 + 200</gadget>
<output>360</output>

<gadget id="calculator">360 * 2</gadget>
<output>720</output>

<result>720</result>