I first solved this question by solving 9 factorial but the answer was wrong. Then I thought of doing it by taking in consideration about how many times the same letter appears but the whole thing just confuses me.
Pls help.
For the first we first look at how many ways you can arrange $P_1INE_1AP_2P_3LE_2$ which is $9!$, but this distinguishes between the three $P$s and the two $E$s. To correct for this fact we then consider one such arrangement and count how many ways one can rearrange the $P$s and $E$s that is how many arrangements that are equivalent which is $3!2!$. The number of arrangements are therefore ${9!\over2!3!}$.
The next is solved in similar way, but since we require it to start and end with $E$ we only have $7$ letters to arrange. The result therefore becomes $7!\over3!$. Here we don't correct for two $E$s since we placed them at the beginning and the end in only one way.