no.of persons only play hockey =15-10=5
no. of persons only play football =17-10=7
no.of persons play both hockey and football=10
so,total no of persons play hockey and football =5+7+10=22
therefore,total no. of persons neither play hockey nor football=25-22=3