Concept:This is a linear arrangement problem based on given positions and gaps between persons. Use the clues to place each person in order from 1 to 7.
Explanation:D is immediately before E, so D and E are consecutive. E is not first or last.
Gap of 4 persons between E and G. Possible pairs: (E=2, G=7) or (E=3, G=6) because E cannot be 1 or 7.
A purchased a mouse; gap of 2 persons between A and E (two persons in between).
If E=2, then A=5 (since positions 3 and 4 are between them). Then C is immediately before A, so C=4. D is before E, so D=1. Then G=7.
Now, persons after A = persons at positions 6 and 7 = 2 persons. So persons before F must also be 2. Thus F is at position 3 (since before F are positions 1 and 2).
Remaining position 6 is B, who purchased mug. Items are assigned: D phone, E TV, F pen, C eraser, A mouse, B mug, G printer.
F is at 3, G at 7. Persons between them: positions 4,5,6 → 3 persons.
Answer:There is a gap of 3 persons between F and G. Option D.