When looking across the periodic table from left to right, which of these groups are the first to contain nonmetals?

group 2
group 7
group 14
group 18