40× 2/8 = 10 (minutes)
It is concluded that the student activity time is 10 minute;
If you're asking how much time there is besides student activities, yes,
40×( 1- 2/8 )=30 (minutes)
It is concluded that there are still 30 minutes besides the student activity time.
I hope I can help you _