Five kids – A, B, C, D, E and four adults – F, G, H, K, are to be seated in three cars, car-1, car-2, car-3 for going on a trip. The following rules will be followed for seating them in cars:
- At least one adult must be seated in each car
- A and D must be in the same car
- B and K cannot be in the same car
- C and G cannot be in the same car
- Neither C nor K can be in car-2