There are two different tables, the first have $p$ chairs and the second have $n-p$. How many ways the $n$ people can sit on those tables?
I have two possible answers: $n!$ or ${n \choose p}$.
But I'm not sure if one of those answers is right because my friends told me they are both are wrong.
Any suggestions please, thanks!
Assume that different permutations of the same $p$ people at the same table are counted as "different ways" to sit people; assume also that one table has $p$ chairs while the other table has $n-p$ chairs. Then the total number of ways is $$ {n\choose p}\cdot p! \cdot (n-p)! \,=\, n! $$ where the ${n \choose p}$ coefficient gives the number of ways to select $p$ people out of $n$, while $p!$ and $(n-p)!$ account for different permutations of people at their respective table.