The best response is: using theoretical models combined with known data.
Astronomers study the sun's layers through a combination of theoretical models that incorporate physics and existing data from observations, including solar emissivity, spectral data, and various solar phenomena.