In a class of 40 students, 25 of the total number of students like to play only cricket, 310 of the total number of students like to play only football, and the remaining students like to play both. What fraction of the total number of students like to play both?