To classify a star with an absolute magnitude of 10 and a temperature of 20,000 K, we can refer to the general characteristics of different spectral classes:
- O-type stars are very hot, with temperatures typically above 30,000 K.
- B-type stars have temperatures ranging from about 10,000 to 30,000 K.
- A-type stars have temperatures from about 7,500 to 10,000 K.
- F-type stars are cooler, with temperatures between 6,000 and 7,500 K.
Given that the star has a temperature of 20,000 K, it falls within the range typical for B-type stars.
Therefore, the correct classification for the star would be B.