This is a very simple "logic problem".
There are three colors: Red, White, Gray.Each of three colored cups (red, white, gray) covers one of these objects: coin, bean, shell.
1. The red cup is somewhere to the left of the white cup
2. The coin is somewhere to the left of the bean . . . . unnecessary
3. The gray cup is somewhere to the right of the shell
4. The bean is somewhere to the right of the gray cup.
Under which color cup is the shell?
There are three objects: Coin, Bean, Shell.
There are three positions: Left, Middle, Right.
Statement 3: .
Statement 4: .
So we have: .
Statement 1: .
Since Gray is in the middle, Red is on the Left, White is on the RIght.
And we have: .
Statement 2 was not needed . . .