Cobalt (Co) is a transition metal, and bromine (Br) is a nonmetal. When these two elements react, they form a covalent compound, cobalt(II) bromide (CoBr2). In CoBr2, the cobalt atom shares electrons with the bromine atoms to form a stable compound.