zerotoinfinite2006
This question is not from any book or any test, this is a real time combination problem -
There is a group of 5 [ABCDE] people 3 boys [ABC] and 2 girl[DE]. I need to find out the combination to arrange these 5 people on 5 seats, in a manner that
1- out of 3 boys, 2 have to sit on the corner. In other words, both corner can be occupied by the boys.
2- One of the boy [Let say C] can't not sit with the girl [D]. (Because they have some personal issues).
I thought of posting this question because not only we all are going for a Movie and we have to create possible combination but also I am very weak in combinations.

Easiest way to deal with combination is to first assume the situation is simple i.e. 5 people arranged in a row is in 5! ways.
Now bring in a complication - The corners should be occupied by boys.
So you could just choose two boys, make them sit at the corners in 2! ways and arrange the rest of the 3 people.
But, another complication - A boy and a girl cannot be together. Cannot be together is handled by finding out the ways in which they can be together and then subtracting from the total.
The problem is that if the boy who cannot be together with the girl is sitting at a corner, the situation is different. If he is sitting in one of the middle 3 seats, the situation is different.
Lets say 3 Boys are B1, B2, B3 and 2 girls are G1, G2. B1 and G1 do not want to sit together.
Two cases:
Case 1: B1 sits in one of the middle seats
So B2 and B3 sit on the corner seats in 2! ways.
G1, G2 and B1 need to sit in the middle seats and B1, G1 should not be together. Then G2 must sit between them. So 2 ways: B1, G2, G1 and G1, G2, B1
Total number of ways here = 2! * 2 = 4 ways
Case 2: B1 sits in one of the corner seats
Select one out of B2 and B3 to sit on the other corner in 2C1 = 2 ways
B1 and the other guy can sit on two corners in 2! ways.
G1 has only 2 places available for her (e.g. B1 * * * B2 so she cannot take the second place in the row. She must take the 3rd or 4th place) so choose 1 out of these 2 places in 2C1 = 2 ways
The other two people can arrange themselves in the other 2 vacant spots in 2! ways
Total number of ways in this case = 2 * 2! * 2 * 2! = 16 ways
Total number of ways combined = 4 + 16 = 20 ways
Note: Generally when working with 'two people should not sit together', we find out the number of ways in which they can sit together and then subtract it from the total. Here, since number of people is very small, its just easier to imagine it and directly solve.