all about clash of clans game.
I have total of 6 barracks. Two of them produces one barbarian each every 20 seconds, the another two barracks produces one archer each every 25 seconds, and the last two produces 1 minion each every 45 seconds. the capacity of army camp is 200.
all barracks train simultaneously.
one archer has an housing space of one.
one barbarian has an housing space of one.
one minion has an housing space of two.
so how much time will it take to full the 200 camp capacity?
http://snag.gy/7c22a.jpg I get this number of units at every full capacity.
Don't focus on the amount of each type of class in the army camp. Look instead at the time.
If it takes $20$ seconds to make 2 housing spaces, then it will take $20*100 = 2000$ seconds to fill it completely.
If it takes $25$ seconds to make 2 housing spaces, then it will take $25*100 = 2500$ seconds to fill it completely.
If it takes $45$ seconds to make 4 housing spaces, then it will take $45*50 = 2250$ seconds to fill it completely.
Now, think of these three events as three different people. They each have a separate time to complete one army camp.
Now, if they all work together, how long would it take? (which is essentially your question):
$$\frac{1}{2000} + \frac{1}{2500} + \frac{1}{2250} = \frac{1}{t}$$
We get that $t = 744$ seconds, or about $12.4$ minutes