A Painting Conundrum

painting conundrum

From Stephen Barr’s Experiments in Topology (1989) via Miodrag Petkovic’s Mathematics and Chess (1997):

This apartment contains eight rooms, each measuring 9 square meters, except for the top one, which measures 18 square meters. You have enough red paint to cover 27 square meters, enough yellow paint to cover 27 square meters, enough green paint to cover 18 square meters, and enough blue paint to cover 9 square meters. Can you paint the eight floors in four colors so that each room neighbors rooms of the other three colors?

Click for Answer