The table above shows the frequency distribution of the ages (in years) of pupils in…