(5-0.02x) (200+20x)-4 (200+20x) =-0.4x squared+16x+200.
X=20 has a maximum value, so if you buy 600 pieces at the price of each piece, 4.6 yuan will gain the most.