A retailer at an outdoor market sold 5 dresses at $36.95 each. He sold 2 more at $41.99 each and 3 at $38.95 each. He also sold one $52 dress at 40% off. He pays the market 20% of sales.How much did he take in from sales after paying the market?

a)83.36
b)325.10
c)333.42
d)416.78