Total number of persons = 9
The lift goes up to the 10th floor but does not stop at the 1st and 2nd floors. Thus, the available floors for the persons to exit are from the 3rd to the 10th floor.
Number of available floors = 8
The number of ways to select 4 persons out of 9 to form the first group is 9C4. The remaining 5 persons automatically form the second group.
9C4=4×3×2×19×8×7×6=126
Now, these two distinct groups must exit at two different floors out of the 8 available floors. The number of ways to assign 2 different floors to the 2 groups is 8P2.
8P2=8×7=56
Total number of ways = 126×56=7056
Answer: 7056