This quesn is the other way of asking that out of 8 boxes we want to select 6 objects with repetition allowed. Now that the all the 6 objects are indistinct, we can say that any of the object in any of the boxes be x. So an example formation can be B2B2B4B7B7B7 we write this as | x x | | x | | | x x x | whre we can say that the |s stand for the separation b/w any two box's item. Therefore the no. of possible combinations can be 13C7 or 13C6.
JEE is not for the regular cramming kinda people but is rather for the people who think about things to the core level and they are the ones who actually excel in life.