How many electrons must each atom gain or lose to acquire an electron configuration identical to the noble gas nearest to it in atomic number?

How many electrons must each atom gain or lose to acquire an electron configuration identical to the noble gas nearest to it in atomic number class=