Sorry, this is way Off Topic, but there are bound to be some people with maths knowledge here.
I have a game in which I have to collect a certain amount of food (f), and a certain amount of wood (w). I start off with 3 gatherers (g). For 50 food, I can create another gatherer. What is the optimum number of gatherers to create, and in what proportions should I assign them to wood or food in order to gather the resources in the shortest amount of time?