Use the following line spectra data to predict the contents…