AnujL
gmatophobia can you please provide a detailed explanation.
i am not able to understand the role of "and" in question
Hi
AnujLWe have 6 members in here - A, B, C, D, E and F
There are two conditions that the solution need to satisfy
1) A cannot sit next to B.
This means any arrangement in which A & B appear next to each other is invalid
Ex. A B C D E F is NOT a valid arrangement as A and B appears next to each other.2) D should sit next to E.
Because its a AND condition, both condition 1 and condition 2 must satisfy.
Let's handle
condition 2 first, Because D and E should always sit next to each other we will take them as single group, say [DE].
Within [DE], either E can on the left and D can on the right, or vice versa. So there are 2 ways of arranging the members within [DE].
We will come to condition 1 a moment later, but say, if that condition weren't there we can arrange A, B, C, [DE] , F in
5! * 2 ways.
Note: [DE] has two members in it. Hence we multiplied by 2However, in this arrangement A and B can come next to each other. So condition 1 has not been met yet. To fulfil
condition 1 we will subtract those cases in which A and B are together.
As before, we will group A & B into a single group, say [AB]. If we were to arrange [AB], C, [DE], F --- it can be done in
4! * 2 * 2 ways.
Note: The multiplication of 2 * 2 is done as we have two groups now, and within each group there are two ways of arranging the members.So number of ways = (5! * 2) - (4! * 2 * 2)
Taking 4! * 2 as common
= 4! * 2 (5 - 2)
= 4 * 3 * 2 * 2 * 3 = 144 ways.
Hope this clarifies.