The total number of students are 50. Number of ways if both the students are in first group is 48C18×50C30=48C18 Number of ways if both are in second group is, 48C27×20C20=48C28 The total number of ways is, 50C20×30C30=50C20 So, the required probability is,