A group of students equal in number to the square root of half the whole class is selected for a project. Two more students were selected as captain and vice captain. Rest of the class which form 89th of class were given leave. Find the total number of students in the class.