60% used a pencil..that leavesĀ 40% remaining students (100% - 60% = 40%)
half of those used a red pen...so 20% used a red pen. (40% / 2 = 20%)
6 students used a red pen. so... 6 students is 20% of what number ?
6 = 0.20x
6/0.20 = x
30 = x
There are 30 students in the class