There are 6 boxes numbered 1, 2, 3, 4, 5,
6. Each box is to be filled up either with a red or a green ball in such a way that at least 1 box contains a green ball and the boxes containing green balls are consecutively numbered. The total number of ways in which this can be done is:
Show Hint
For consecutive selections, the number of ways = total positions - length + 1.