L.C.M. of 5,6,7,8 = 840. Required number is of the form 840k + 3 Least value of k for which (840k + 3) is divisible by 9 is k = 2. Required number = (840 X 2 + 3)=1683
The number students in each room = HCF of 70,98 and 126 =14 In each room , maximum 14 students can be seated. Total number students = 70 + 98 +126 =294 Number of rooms required = 294/14 =21