Let’s arrange step by step.
We have 6 friends sitting in a row facing north.
Positions are numbered 1 to 6 from left to right.
“No one sits to the left of F.”
That means F is at position 1.
So:
1 → F
2 → ?
3 → ?
4 → ?
5 → ?
6 → ?
“Only four people sit between F and E.”
If F is at position 1, and four people sit between F and E:
Positions between 1 and 6 = 2, 3, 4, 5 (4 people)
So E must be at position 6.
Now we have:
1 → F
2 → ?
3 → ?
4 → ?
5 → ?
6 → E
“Only three people sit to the left of Z.”
That means Z is at position 4.
(Positions 1,2,3 are to its left → 3 people)
Now:
1 → F
2 → ?
3 → ?
4 → Z
5 → ?
6 → E
“X sits to the immediate left of G.”
So X and G must be adjacent, with X just before G.
Possible empty positions:
2, 3, 5
Position 4 and 6 already filled.
They cannot be (3,4) because 4 is Z.
They cannot be (5,6) because 6 is E.
So only possible pair:
2 → X
3 → G
Now arrangement:
1 → F
2 → X
3 → G
4 → Z
5 → Y
6 → E
(Only Y remains for position 5.)
Question
How many people sit between Y and F?
F is at position 1.
Y is at position 5.
People between them:
Positions 2, 3, 4 → 3 people
Final Answer:
3 people sit between Y and F.