In a small town, the total number of students enrolled in math class is 240. The number of students enrolled in algebra is twice the number who are enrolled in geometry. If the total number of students in geometry and algebra combined is equal to the students not enrolled in any math class, how many students are enrolled in geometry?