Which of the following is a major factor in determining the life span of a star​