25-3=<<25-3=22>>22 students
24-4=<<24-4=20>>20 students
She had 22+20=<<22+20=42>>42 students
#### 42