In a small college, students are allowed to take only one specialization. Traditionally, only two specializations are offered: Science and Arts. Students enrolled to specialize in Science must take Physics and Mathematics subjects, while students enrolled to specialize in Arts must take Economics and Political Science subjects. Students enrolled in Science are not allowed to take either Economics or Political Science, while students enrolled in Arts are not allowed to take either Physics or Mathematics.
From among the students originally enrolled in Arts, 20 students switch to MatEco. This makes the number of Science students twice the number of Arts students. After this, from among the students who originally enrolled in Science, 45 students switch to MatEco. This makes the number of Arts students twice the number of Science students.