A solid compound is formed by atoms of A (cations), B (cations), and O (anions). Atoms of O form an hcp lattice. Atoms of A occupy 25% of tetrahedral holes and atoms of B occupy 50% of octahedral holes. What is the molecular formula of the solid?