Why can one judge the age of the Sun by comparing the chemical composition of its atmosphere with the chemical composition of Jupiter?

We proceed from the probable assumption that the Sun and Jupiter were formed in the same region of space. The substance of Jupiter is practically “conserved” substance of the gas-dust cloud, from which the solar system was formed, and thermonuclear reactions took place on the sun, which changed the initial chemical composition of the substance.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.