If an element with high electron affinity combines with another element with low ionization energy…