Eight students A, B, C, D, E, F, G and H are planning to enjoy car racing. There are only two cars and following are the conditions :
(i). One car can accommodate maximum five and minimum four students.
(ii). A will sit in the same car in which D is sitting but H is not in the same car.
(iii). B and C can't sit in the same car in which D is sitting.
(iv). F will sit in the car of four people only alongwith A and E but certainly not with G.
If H and G are sitting in the same car, who are other two students sitting in the same car ?
Consider two cars I and II.
A and D sit in the same car, say I.
H is not in the same car i.e. H is in car II.
B and C are not in the same car in which D is sitting i.e. B and C are in car II.
F sits along with A and E in the same car i.e. car I.
G is in the other car i.e. car II.
Thus, we have :
Car I → A, D, E, F
Car II → B, C, G, H
B and C are sitting in the same car in which G and H are sitting.