The Comet (B) is the object that develops a "tail" when it enters the inner solar system and the sun heats it up.
But it's really kind of weird to call it a "tail". Once the comet passes closest to the sun and starts to head out of the solar system again, the so-called "tail" goes IN FRONT of it.