Suppose the first bag is red, then C is right, then B says red is wrong, then the fourth bag is white, then D is right. Let's take a look again: if the fourth bag is white, then the fifth bag can only be purple, but now A and B are not right. After a little reasoning, we can know that the second bag is blue and the third bag is yellow.
Table: Note: Red =a Yellow =b Blue =c White =d Purple = E.
Person /X Package 1 2 3 4 5
Arabic and English
British Council
C a d
D c d
Obie
1-a 2-c 3-b 4-d 5-e
Above, over!