We went to the same school and had been in the same class for five years.
# We went to the same school and had been in the same class for five years.
# We went to the same school and had been in the same class for five years.
The same school and had been in the same class for five years.