Here S=( TTT,TTH,THT,HTT,THH,HTH,HHT,HHH )
a(i) one tail (THH,HTH,HHH)
Then E=3
So (p)=n(E)n(S)=38
a(ii) two tails
Then E=3
So (p)=n(E)n(S)=38
a(iii) all tails
Then E=1
So (p)=n(E)n(S)=18
a(iv) at least two tails
Then E=4
So (p)=n(E)n(S)=48=12
(b) (i) at most two tails
Then E=7
So (p)=n(E)n(S)=78
b(ii) At most two heads
Then E=7
So (p)=n(E)n(S)=78