Eight students sit in a small classroom with eight chairs 4 on one side with windows and 4 on the other side by the wall. Two students want to sit on opposite sides to each other and another two want to sit on the same side with windows. Calculate the total number of ways this can be done.