(1) Define random variables for partitioning the 30 flips into groups of 10:
Let be the number of heads in the first 10 flips.
Let be the number of heads in the middle 10 flips.
Let be the number of heads in the last 10 flips.
Clearly, and are independent. Note that and .
(2) Compute and :
(3) Compute :
(4) Compute :
Since and , we have .
Thus, .
(5) Compute :
(6) Compute :