Working our way through the question systematically:
In a class of 25 students, all of the students played at least one of the sports basketball, cricket and football.
1. ok, total = 25, no one is outside the circles.
2 of the students played all three sports.
2. smack bang in the middle, part of all 3 circles: 2
Of the 12 students who played football, 2 of them played neither of the other two sports.
3. 2 play football only. Keep the "12" in mind for next couple of steps:
9 students played football and cricket.
4. Since 9 play football and cricket, and we've already counted 2 who play all 3 sports (from step 2), the ones who play football and cricket but not basketball must be 7.
5. Therefore, since total for football is 12, the ones who play football and basketball but not cricket must be 1.
Of the students who didn't play football 9 played cricket and 9 played basketball.
6. since 12 play football, the students who didn't play football at all (ie cricket and/or basketball only) must be 13 (since total is 25).
7. trying a few numbers (trial and error), we see that 5 must play both basketball and cricket, and 4 play basketball only, and 4 play cricket only.
a) if you follow above logic, the venn diagram should be easy to draw.
b) only basketball = 4.