Twenty five coloured beads are to be arranged in a grid comprising of five rows and five columns. Each cell in the grid must contain exactly one bead. Each bead is coloured either Red, Blue or Green.

While arranging the beads along any of the five rows or along any of the five columns, the rules given below are to be followed :

Two adjacent beads along the same row or column are always of different colours.

There is at least one Green bead between any two Blue beads along the same row or column.

There is at least one Blue and at least one Green bead between any two Red beads along the same row or column.

Every unique, complete arrangement of twenty five beads is called a configuration.

The total number of possible configuration using beads of only two colours is :