Eight persons namely A, B, C, D, E, F, G and H purchased different items in a sequence, but not necessarily in the same order. Two people purchased items between A and C. So, there are two cases possible i.e., Case 1 and Case 2.
Five people purchased items between C and H, where H purchased items before C. D purchased the item immediately after H. So, case 1 will be invalid.
E purchased the item immediately before G. F purchased the item after C. Remaining, B purchased immediately before A.
Finally, we get,
G purchased the item immediately before C.