Let’s arrange step by step.
People: D, E, F, G, H, W
They are sitting in a row facing north.
Step 1: “No one sits to the right of H”
Since all face north, right side means east direction (our right side when looking at them).
So H must be at the extreme right end.
Positions (left to right):
_ H
(6 seats total)
Step 2: “Only two people sit between H and G”
H is at position 6.
So G must be at position 3.
Because between position 3 and 6 → positions 4 and 5 = two people ✔
Now arrangement:
G H
Step 3: “E sits to the immediate left of G”
So E must be at position 2.
E G _ H
Step 4: “G sits to the immediate left of D”
So D must be at position 4.
E G D H
Step 5: “Only two people sit between W and D”
D is at position 4.
So W must be either:
or
So W is at position 1.
W E G D _ H
Step 6: Remaining person is F
Only seat left = position 5.
Final arrangement:
W E G D F H
Step 7: How many people sit between F and E?
E is at position 2
F is at position 5
Between them → positions 3 and 4
So 2 people sit between F and E.
Final Answer: 2