The correct option is B 39
There are the four groups who got marks less than 20 in the test.
Respective groups are (0-5), (5-10), (10-15) and (15-20).
Total number of students who got marks less than 20 in the test is the sum of frequency of the respective four groups = 7+10+14+8 = 39.