Solution is provided by two methods here and it gives different results. Which method should be followed from examination point of view as both are correct. First method is without combining columns.
Both would be marked correct in the exam. However, I suspect the examiners will ensure that this problem doesn't arise by telling you whether to combine groups or not.