Maria has a $6 \times 5$ board with some shaded squares
Source: May Olympiad 2020 L1 P4
March 14, 2021
combinatorics
Problem Statement
Maria has a board with some shaded squares, as in the figure. She writes, in some order, the digits and in the first row and then completes the board as follows: look at the number written in the shaded box and write the number that occupies the position indicated by the box shaded as the last number in the next row, and repeat the other numbers in the first four squares, following the same order as in the previous row.
For example, if you wrote in the first row, then since is in the shaded box, the number that occupies the fourth place is written in the last box of the second row and completes it with the remaining numbers in the order in which. They were. She remains: .
Then, to complete the third row, as in the shaded box is , the number located in the third place writes it in the last box and gets . Following in the same way, he gets the board of the figure.
Show a way to locate the numbers in the first row to get the numbers in the last row.