An octagon. Each shape has the same number of sides as the sum of the sides of the two shapes below it. If the number is over 10, then the last digit is used instead. For example, 9 + 8 = 17 so the brick above is 7-sided. The top shape is an 8-sided octagon because there are two 4-sided shapes below it.
A man is trapped in a room with only two possible exits. Through the first door is a room with an enormous magnifying glass causing the blazing hot sun to instantly burn anything that enters. Through the second door there is a fire-breathing dragon. How does the man escape?