There were three levels around the Heichal (sanctuary) building, three floors. Different small rooms were built into those levels. Here we'll talk about how these small rooms were arranged. The Mishnah says there were 38 rooms in the Heichal building, which was used to store the valuable items of the Beit HaMikdash (Temple). Fifteen rooms were built in the north, fifteen rooms in the south, and eight rooms in the west. The fifteen rooms in the north and the fifteen rooms in the south were arranged with five cells on each of these floors. Five, five, and five, times two—that equals thirty.
In the west, the rooms were arranged with three cells on top of three cells: three on the bottom floor, three on the second floor, and then two rooms on the top floor. Each room had three openings: one to the room to the right, one to the room to the left, and one to the room above it. So we see here that all of the rooms were sort of connected in every way. The Mishnah says there were 38 rooms, and they had three openings each. Of course, the rooms on the top level would not have openings to rooms above them, because there are no rooms above them. So what the Mishnah means here is that all the rooms for which this is possible—the rooms on the first and second floors—also have an opening to the room above them.
Echad b'keren mizrachit tzfonit hayu chamisha petachim. In the room on the middle level, at the northeast corner of the Heichal, there were five openings instead of the three. Echad la'ta min hayamin, ve'echad la'ta she'al gabav. One in the west to the cell on the right, and one to the cell above, to the room above it. Ve'echad la'mesibah, and one in the north to the winding ramp. Beyond the outer wall of the rooms in the north was a ramp, which was a walkway that started on the ground and went all the way up to the room. From the roof of the rooms, they would climb down a ladder to get from the room on the middle level to this ramp. Ve'echad la'pishpash, and one in the east that would lead to the small doorway in the Ulam (vestibule). Ve'echad la'Heichal, and one in the south to the Heichal. So this unique room gave access to a lot of other things, and therefore it had more openings.

