On a math test, 60% of the students used a pencil. Half of the remaining students used a red pen. If 6 students used a rend pen, how many students are in the class?