Complex sentence: Most of the classrooms were in a building that, from the air, was shaped like a boxy eight with two courtyards in the open spaces formed by the eight.
Split into simpler sentences: Most of the classrooms were in a building that, from the air, was shaped like a boxy eight. Two courtyards were in the open spaces formed by the eight.