How time to build is calculated when more than 1 villager is ordered to build?

1 villager can build a barrack on 30 seconds
2 villagers on ____ seconds
3 ¨ ¨¨ ¨¨