A factory took 5 days to make certain number of dolls. It would take 3 days to make the same number of dolls if it made 350 more dolls each day. How many dolls did the factory make