1. He said that they (had been) friends at school some years before.
2. I asked my sister what she (had bought) for my birthday.
3. a) They explained that pupils study for five years at secondary school in England.
Оба варианта приемлемы. Первый более приемлем.