Wells tells his class of 12 that when they completed the assignment, they may play online math games. At the end of class, 40% of the class is playing online games. At the end of class, 12 students or 40% (of the class is playing online math games. How many total students are in class?