So Someone already seems to have answered this question but it seems they didn’t show the working so here it is
Basically when you add the no of students doing these both activities you get 110
But there are only 100 students
This means that the 10 students must be doing both
So music only is 50-10 that is 40