The word "they" in this section refers to the captain and the officers. In the phrase "feared that the people might stone them" the word "them" refers to the captain and the officers. All other occurrences of "them" in this chunk refer to the apostles. Here the word "you" is plural and refers to the apostles. (See: [[rc://en/ta/man/translate/figs-you]])