The oxidation number of rubidium, Rb is +1 (meaning it needs to lose 1 electron to be able to react) while that of bromine is -1 (meaning it needs to gain 1 electron to be able to react). Therefore, Rb and Br must form a compound with chemical formula RbBr.