Three coins tossed.
∴ The sample space is
S={HHH,HHT,HTH,THH,HTT,THT,TTH,TTT}
∴n(S)=8
(1) Let A be event of getting tail in middle toss.
∴A={HTH,HTT,TTH,TTT}
∴n(A)=4
∴P(A)=n(A)n(S)=48=12
(2) Let B be the event of getting all heads.
∴B={HHH}
∴n(B)=1
∴(PB)=n(B)n(S)
=18