In a class there are certain number of students and their average weight is 15 kg. If 6 students with average weight of 18 kg join or 9 students with average weight of 14 kg leaves, then in both the cases average weight of students remains same. How many students are there initially in a class ?
Initially if there are 'x' students in a class, then their total weight = 15x kg.
When 6 students of average weight 18 kg joins, then average of all students = (15x + 18*6) / (x+6) Kg
When 9 students of average weight 14 kg leaves, then average of all students = (15x - 14*9) / (x-9) Kg
As both cases,the averages are same .'. (15x + 18*6) / (x+6) = (15x - 14*9) / (x-9)
(5x + 36) / (x+6) = (5x - 42) / (x-9)
5x² - 45x + 36x - 324 = 5x² - 42x + 30x - 252
3x = 72
x = 24
Hence, there are 24 students initially in a class.