Question 1104498
5 factorial times 5 factorial times 2
  

m1m2m3m4m5w1w2w3w4w5

seat men on left end and women on right or vice VERSA ( this is why we multiply by 2  ie wm or mw)

now 5! ways to arrange men and 5! ways to arrange women

therefore

2*5!*5!