Mohit is 16th from the top and twelfth from the bottom in merit in the class. How many students are there in the class?