A compound is formed by \(A\) (cations), \(B\) (cations) and \(O\) (anions). Atoms of \(O\) form a ccp lattice. Atoms of \(A\) occupy \(50\%\) of octahedral voids and atoms of \(B\) occupy \(25\%\) of tetrahedral voids. What is the molecular formula of the compound?