B-type stars are hot, massive, and luminous stars that have a lifespan of approximately 10 million to 1 billion years. Their lifespan varies depending on their initial mass, with more massive stars having shorter lifespans. B-type stars are classified as main sequence stars, which means they fuse hydrogen into helium in their cores to produce energy. As a B-type star evolves, it undergoes several phases, including the red giant phase, the asymptotic giant branch phase, and the supernova phase. The final fate of a B-type star is to collapse into a neutron star or a black hole, depending on its initial mass.