Part A
selective_sloth , y shld one count identity map as only 1 , it is possible to have different functions for (1,1) (2,2) (3,3) (4,4)
so answer shld be 13
Part B
Answer is 15 option (2)
Crude approach
first two matches are definetely won by india
Further posiibilities
1. 2I,1P.....
2. 3I,1P.... or 3I,2P,....
3. 4I,1P... or 4I,2P... or 4I,3P...
4. 5I,4P => 1 way
CASE3
Now starting with the 3rd case 4I,3P... I can come only in 8th position
e.g. IIIIPPPIP
For 4I,2P ...I can come only in 7th position
For 4I,1P ...I can come only in 6th position
=> 3 ways
CASE2
3I,2P....Next value must be I which means the remaining I can come only in the 7th or 8th place => 2 ways
Similarily for 3I,1P.... I can come only in 6th or 7th or 8th place => 3 ways
=> overall 5 ways
CASE1
2I,1P..... Similarily N =1+ {2+3 } = 6
=> overall for the question a total of 15 ways