Let the number of students who studying only H be h, only E be e, only H and P but not E be x, only E and P but not H be y
Given only P = 0 All three = 10; Studying only H and E but not P = 20
Given number of students studying H = Number of students studying E
= h + x + 20 + 10
= e + y + 20 + 10
h + x = e + y total number of students = 74
Therefore, h + x + 20 + 10 + e + y = 74
h + x + e + y = 44
h + x + h + x = 44
h + x = 22
Therefore, the number of students studying H = h + x + 20 + 10 = 22 + 20 + 10 = 52.