In the sophomore class at Dixon High School, the number of students taking French is two-thirds of the number taking Spanish. How many students are studying each language if the total number of students in French and Spanish is 310?