Answer:
256
Step-by-step explanation:
This is just a simply problem using powers.
We have 8 rooms here, to be painted with white or yellow. so we have first 2 possibilities of colors.
We can paint the room, the eight room with just yellow, or just white. But we can also paint one room with white and 8 with yellow. And we vary and alter the order of this.
Regardless the order in which we paint the room, we have 8 rooms and only two possibilities to paint the rooms, so the math involved is just:
P = 2⁸ = 256
These are the total possibilities to paint the rooms with just these colors.