Let’s place them step by step carefully.
“Only G sits to the left of J”
This means:
Total people = 7
If 4 people are between G and H, they must be at extreme ends
Possible:
But since G–J must be together, only this works:
G at 1, J at 2, H at 6
“Only K sits between L and I”
So:
L – K – I OR I – K – L
“L is not an immediate neighbour of H”
H is at position 6
So L cannot be at position 5 or 7
Fill remaining positions
Positions:
1 G
2 J
3
4
5
6 H
7
Now place L, K, I (with one between them):
Valid placement:
I (3), K (4), L (5)
(Check: L not next to H? L is at 5, H at 6 → not allowed)
Try:
L (3), K (4), I (5)
(Check: L at 3, H at 6 → OK)
Remaining position → 7 → M
Final arrangement:
1 G
2 J
3 L
4 K
5 I
6 H
7 M
People between M and J
J is at 2, M is at 7
People between = positions 3, 4, 5, 6 → 4 people
Final Answer:
4