I tried to use the principle of inclusion-exclusion.
The number of ways of getting 5 consecutive heads= $5×2^4$
The number of ways of getting 6 consecutive heads= $4×2^3$
Similarly, the number of ways of getting 7, 8, and 9 consecutive heads are $3×2^2, 2×2,$ and $1$, respectively.
So, the number of ways of getting at least 5 consecutive heads= $5×2^4-4×2^3+3×2^2-2×2+1$ = $57$
But the correct number would be 48. Where did I go wrong?