The correct response is: using theoretical models combined with known data.
Astronomers have developed their understanding of the sun's layers through a combination of observational data, including spectroscopy and solar oscillation studies, and theoretical models that explain the physical processes occurring within the sun.