In a typical regiment, recruits commonly shared the characteristic of being "from the same town." This was often the case in historical military formations, where local communities would send groups of individuals to serve together. Therefore, the correct response is:
They were all from the same town.