Which of these pairs of elements have the same number of valence electrons?

Which of these pairs of elements have the same number of valence electrons?

A) oxygen (O) and bromine (Br)
B) selenium (Se) and bromine (Br)
C) carbon © and lead (Pb)
D) oxygen (O) and carbon ©
E) sodium (Na) and magnesium (Mg)