Let the persons sit on north side are
N1 and
N2 and the persons sit on east side are E1 and E2
and the person sits in middle is M
Case:1
Let M sit on south or west side
No. of ways for M can sit =2
No. of ways for N1 and N2 = C32×2!
No. of ways for E1 and E2 = C32×2!
And , no. of ways remaining 7 person can sit =7!
So, no. of ways all can sit = 2×C32×2!×C32×2!×7!
Case:2
Let M sit on north side
No. of ways for M can sit =1
No. of ways for N1 and N2 = 2!
No. of ways for E1 and E2 = C32×2!
And , no. of ways remaining 7 person can sit =7!
So, no. of ways all can sit = 2!×C32×2!×7!
Case:3
Let M sit on east side
No. of ways for M can sit =1
No. of ways for N1 and N2 = C32×2!
No. of ways for E1 and E2 = 2!
And , no. of ways remaining 7 person can sit =7!
So, no. of ways all can sit = 2!×C32×2!×7!
So, Total no. of ways = (2×C32×2!×C32×2!×7!)+(2!×C32×2!×7!)+(2!×C32×2!×7!)
= (2×3×2!×3×2!×7!)+(2!×3×2!×7!)+(2!×3×2!×7!)
= (72×7!)+(12×7!)+(12×7!)
= (72+12+12)7!
= 96(7!)