When choosing a person for the civil service, the Tang dynasty considered this the most important factor.

A. position in society

B. age

C. wealth

D. merit