GMAT Problem Solving

Next steps

In a certain calculus class, the ratio of the number of mathematics majors to the number of students who are not mathematics majors is 2 to 5.if 2 more mathematics majors were to enter the class the ratio would be 1 to 2. How many students are in the class