Which of the following explains how all compounds are created?

a) By the combination of an unlimited number of elements
b) By creating and destroying protons of different atoms
c) By the combinations of many atoms of the same element
d) By losing, gaining, or sharing electrons between other atoms

d) By losing, gaining, or sharing electrons between other atoms