place mariya in seat 1, think of cooper, manny and hafsa as one 'person', so now there are 5 effective people, there are only 4 possibilities for seat 8, then there is 4! for the rest of the seats. Then multiply by 3! for coop, manny and hafsa. so it is 4x4!x3!=576.