A mineral is pictured as large X ions stacked ABCABC, with two kinds of smaller ion tucked into the holes: A occupies a quarter of the holes ringed by four X, and B occupies half of the holes ringed by six X. Which simplest formula fits this picture?