QlarIITy

MathematicsJEE Main 2025 · 22 JanuarySingle correct

In a group of 3 girls and 4 boys, there are two boys B1B_1 and B2B_2. The number of ways, in which these girls and boys can stand in a queue such that all the girls stand together, all the boys stand together, but B1B_1 and B2B_2 are not adjacent to each other, is :

  1. Option A: 96
  2. Option B: 144
  3. Option C: 120
  4. Option D: 72
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. Arrange the blocks first, then the members inside each block.

Concept refresher. Objects that must stay together are treated as one block. If the block and the other objects make kk units and the block holds mm different objects, the number of arrangements is

N=k!×m!N = k! \times m!

Picture the situation. The queue is made of two unbroken stretches, one of girls and one of boys, and either stretch can be in front. Inside the girls there is no restriction. Inside the boys, two particular boys must not stand next to each other, which is counted by removing the orders in which they are neighbours.

Approach. Multiply the orders of the blocks, of the girls, and of the boys with the two named boys apart.

  1. Step 1: The blocks and the girls

    The block of girls and the block of boys can stand in 2 orders, and the three girls can be arranged in 3!=63! = 6 ways.

  2. Step 2: The boys

    The four boys can be arranged in 4!=244! = 24 ways, and in 2×3!=122 \times 3! = 12 of these B1B_1 and B2B_2 are adjacent. That leaves 12 orders, so the count is 2×6×12=1442 \times 6 \times 12 = 144.

Answer. (B) 144

Sanity check. Directly: the other two boys stand in 2 orders, and B1B_1 and B2B_2 take two of the 3 gaps around them in 3×2=63 \times 2 = 6 ways, giving 12 orders of the boys.

Why the other options are wrong

  • (A) The value 96 would need only 8 allowed orders of the boys; there are 12.
  • (C) The value 120 is 24 short of 2×6×122 \times 6 \times 12.
  • (D) The value 72 is 6×126 \times 12; it forgets that the two blocks can stand in 2 orders.

Key takeaway

The trap. The order of the two blocks is a separate factor of two.

How toppers think. They count the boys both by subtraction and by the gap method.

Remember. 2×3!×(4!−2×3!)2 \times 3! \times (4! - 2 \times 3!)

More on Permutations