Total number of students applied= 150-20=130
130= Number of students applied for the group I + Number of students applied for group II - number of students applied for the both
There fore
number of students applied for both groups = Number of students applied for the group I + Number of students applied for group II-130=95+82-130=47