Analysis of compounds gives Percentage composition. So we look at percentage composition and then how to calculate the simplest ratio of elements.