AMC 8 2026 (Problem 15)

Elijah has a large collection of identical wooden cubes which are white on 4 faces and gray on 2 faces that share an edge. He glues some cubes together face-to-face. The figure below shows 2 cubes being glued together, leaving 3 gray faces visible. What is the fewest number of cubes that he could glue together to ensure that no gray faces are visible, no matter how he rotates the figure?
Two cubes with two adjacent gray faces being glued face-to-face
(A)  4\text{(A)}\;4(B)  6\text{(B)}\;6(C)  8\text{(C)}\;8(D)  9\text{(D)}\;9(E)  27\text{(E)}\;27