To classify a star based on its absolute magnitude and temperature, you can refer to the Hertzsprung-Russell diagram, which categorizes stars into different spectral classes based primarily on their temperature (measured in Kelvin) and luminosity (or absolute magnitude).
In general:
- Class O stars have temperatures greater than 30,000 K.
- Class B stars have temperatures ranging from about 10,000 K to 30,000 K.
- Class A stars range from about 7,500 K to 10,000 K.
- Class F stars are between 6,000 K and 7,500 K.
Given that the star in question has a temperature of 20,000 K, it falls within the range of Class B stars. Therefore, the correct classification for the star would be:
B