Nine people are to be seated at a thin rectangular table with 4 people on one side and five on the other. How many different ways can these nine people be seated if:
Mary and John must sit on the same side
Mary and John must sit on opposing sides
Mary and John must sit on the same side
Mary and John must sit on opposing sides