A square has all the sides being equal.
Since the top can fit 3 color tiles, then the side must fit the same number of tiles.
Therefore, 3 roles and 3 columns of tiles will be required.
The number of tiles required will calculated similar to area of a square. That is,
Number of tiles = 3*3 = 9 tiles.