Two friends, Alice and Bob, each have a cube of the same dimensions. Alice decorates her cube by painting one of its faces red and the opposite face blue, while Bob decorates his cube by painting two adjacent faces yellow and the two opposite faces green. If the total painted area for both cubes combined is 96 square centimeters, what is the side length of each cube? Let's think step by step and output the final answer within \boxed{}.
user