Dear student,
The difference in atomic number means that if the first element has atomic number 8 and other elements in the same group has the atomic number is 16 then the difference is 16-8 = 8
So this is how it follows the rule 8, 8 , 18 , 18 ,32
Regards