Answer
161280
Work Step by Step
Think of John and Jane as 1 person, and Mike and Molly as 1 person. There are now 8 people to be arranged in a row, which has 8! = 40320 possibilities. Then, there are 2 ways to arrange John and Jane, and 2 to arrange Mike and Molly, so the total amount of arrangements is 40320 * 2 * 2 = 161280.