The relation between satellite peaks in x-ray emission and x-ray photoemission spectra