Subtract a suitable baseline: http://www.casaxps.com/help_manual/manual_updates/peak_fitting_in_xps.pdf (also a good guideline if you're using a different software)
Integrate the peaks of the elements in question
Divide the integrals by suitable sensitivity factors. If your tool manufacturer does not provide data for your XPS setup, use this as a starter (the main section of interest starts at page 67): https://uhv.cheme.cmu.edu/manuals/M470101.pdf
For the choice of the right peaks, the Thermo Fisher learning center is always a good address: https://www.thermofisher.com/de/de/home/materials-science/learning-center/periodic-table.html
Nitin T Shelke, To determine the elemental ratio in a compound using XPS, first obtain high-resolution spectra for each element of interest and measure the peak areas after proper background subtraction. Then, correct these peak areas by dividing them by the element-specific Relative Sensitivity Factors (RSFs) to account for differences in photoionisation efficiency. The atomic ratio between elements is calculated by comparing their corrected intensities. Keep in mind that XPS analyses only the top few nanometres of the surface, so the ratios reflect surface composition, which may differ from the bulk due to contamination, sample charging, or sputtering effects. Accurate quantification requires careful peak fitting, background correction, and consideration of these surface-sensitive factors.