There are 1800 students altogether in School A and School B. The number of students in School A is 2 times as large as School B. How many students are there in School A and School B respectively?