Answer :

24 divided by 8 is 3 
so three students play the piano