Part (a)
There are 2 options per bit, and 9 bits. We have 2^9 = 512 different bit strings of length 9.
Answer: 512
===============================================
Part (b)
There are 2^8 = 256 bit strings of length 8 and 2^9 = 512 bit strings of length 9.
That gives 256+512 = 768 bit strings that are between lengths 8 bits and 9 bits long.
Answer: 768