(d) B and D
Element B has the electronic configuration of 2,6. It requires 2 electrons to complete its octet. On the other hand, element D has the electronic configuration of 2,8,2. It requires to release 2 electrons to complete its octet. Thus, both atoms react to form ionic bonds by transfer of electrons.