Finding the total number of students in a given ratio.