Complex sentence: While it was a main sequence star, this was the most massive member of this system but it ejected most of its mass toward the end of its life.
Split into simpler sentences: While it was a main sequence star, this was the most massive member of this system. But it ejected most of its mass toward the end of its life.