John and Mary invite 8 friends to their Christmas Party.Total 10 people.
By the end of the party, the participants are arranged in 2 rows of 5 in order to take a photograph, Find the number of arrangements that can be made if
a.there is no restriction
b.John and Mary are next to each other