Simão needs to discover a hidden number in the provided table, which is the code of the Treasure Ark.

To find the code, he needs to form all groups of three digits that are in successive cells, horizontally or vertically, and whose sum is 14. After removing all possible numbers from these groups from the table, the code is the sum of the

| 5 | 9 | 4 | 9 | 4 | 1 |
| :--- | :--- | :--- | :--- | :--- | :--- |
| 6 | 3 | 7 | 3 | 4 | 8 |
| 8 | 2 | 4 | 2 | 5 | 5 |
| 7 | 4 | 5 | 7 | 5 | 2 |
| 2 | 7 | 6 | 1 | 2 | 8 |
| 5 | 2 | 3 | 6 | 7 | 1 |

numbers that remain in the table. What is this code?
In the following two tables, we show only the groups of three consecutive numbers, horizontally or vertically, whose sum is 14.

|  |  |  | 9 | 4 | 1 |
| :--- | :--- | :--- | :--- | :--- | :--- |
|  |  | 7 | 3 | 4 |  |
| 8 | 2 | 4 |  |  |  |
|  |  |  | 7 | 5 | 2 |
|  | 7 | 6 | 1 |  |  |
|  |  |  | 6 | 7 | 1 |


|  | 9 |  | 9 |  | 1 |
| :--- | :--- | :--- | :--- | :--- | :--- |
|  | 3 |  | 3 | 4 | 8 |
|  | 2 |  | 2 | 5 | 5 |
| 7 |  | 5 | 7 | 5 |  |
| 2 |  | 6 | 1 | 2 |  |
| 5 |  | 3 | 6 | 7 |  |

Thus, when we eliminate these numbers from the initial table, the numbers that remain are only those indicated in the following table.

| 5 |  | 4 |  |  |  |
| :--- | :--- | :--- | :--- | :--- | :--- |
| 6 |  |  |  |  |  |
|  |  |  |  |  |  |
|  | 4 |  |  |  |  |
|  |  |  |  |  | 8 |
|  | 2 |  |  |  |  |

Therefore, the sum of the remaining numbers is $5+4+6+4+8+2=29$, which is the code of the Treasure Ark.