Both carbon and lead belong to Group IV elements, and thus they have the same number of valence electrons.
In
each of the other options, the two elements belong to different groups,
and thus they do NOT have the same number of valence electrons.
I hope this helped you, please tell me if I am correct or not <3