In what way was the government of the Tang and Song dynasties the same?

1.Both used a civil service exam to select officials.
2. Both closed Chinese ports to limit foreign trade.
3.Both gave control to powerful military leaders.
4. Both made officials change positions every three years.

1. Both used a civil service exam to select officials.