we are given a group of 10 people that need to exit in groups of 2, 3, and 5 at different storeys. The problem can be broken down as follows:
1. First, we need to assign 3 groups of people (2, 3, and 5) to different storeys. This can be done in \( \frac{10!}{2!3!5!} \) ways, as we are dividing the 10 people into distinct groups of 2, 3, and 5.
2. Second, for each of the groups (2 people, 3 people, and 5 people), we can choose the storeys at which they will exit. The number of ways to arrange 3 groups in 3 different storeys is simply \(3! = 6\).
Thus, the total number of ways the 10 people can exit the lift is calculated by multiplying these two values:
\[
\frac{10!}{2!3!5!} \times 3! = \frac{10!}{2!3!5!} \times 6 = 720
\]