Question 22
At level 1 of the computer game Treasury (Zakladnica), the player walks through an underground treasury consisting of 13 octagonal and 12 square rooms. The only entrance to and exit from the treasury is in the central room, and in each of the remaining 24 rooms there is one gold coin (see the figure). Between each two (neighbouring) rooms there is a passage, which closes as soon as the player steps through it. When the player leaves a room in which he picked up a gold coin, a new gold coin appears in that room. If the player remains trapped in the treasury, he loses all collected coins and the game resets. At most how many gold coins can the player bring out of the treasury?

