Eight persons- S, T, U, V, W, X, Y and Z are going to market to purchase some products one after another but not necessarily in the same order.
Two persons purchased products between V and T.
Not more than two persons purchased product after T.
Case 1 | Case 2 | Case 3 |
Person | Person | Person |
| | |
| | |
| | V |
| V | |
V | | |
| | T |
| T | |
T | | |
Four persons purchased products between U and Z.
U purchased product after T and before W.
Thus, Case 1 and Case 2 get cancelled.
S purchased product immediately after Y.
Now, only X is remaining.
This is the final arrangement.
Three persons purchased product after S.