At the north campus of a performing arts school, 20% of the students are music majors. At the south campus, 70% of the students are music majors. The campuses are merged into one east campus. If 30% of the 1000 students at the east campus are music majors, how many students did the north and south campuses have before the merger?