If a factory produces a qualified product, the salary is 15 yuan, and a waste product is deducted 20 yuan. Master Chen produces 18 pieces every day, and a month is counted as 22 working days. His salary this month is 5170 yuan, how many qualified products did he produce this month?
某厂生产一件合格产品，记工资15元，生产一件废品扣20元，陈师傅每天生产18件，一个月按22个工作日计．他这个月的工资是5170元，这个月他生产了多少件合格产品？
<gadget id="calculator">15 * 18 * 22</gadget>
<output>5_940</output>

<gadget id="calculator">5_940 - 5_170</gadget>
<output>770</output>

<gadget id="calculator">15 + 20</gadget>
<output>35</output>

<gadget id="calculator">770 / 35</gadget>
<output>22</output>

<gadget id="calculator">18 * 22</gadget>
<output>396</output>

<gadget id="calculator">396 - 22</gadget>
<output>374</output>

<result>374</result>