In a class, half of students had gone to watch magic show. Twice the square root of
the students had gone to watch drama, and remaining 6 students had gone to watch
circus. Find total number of students in the class.