Independent solution (source diagram/values checked; not a quotation of PDF workings):
Add the red and blue balloons for each class: 6A: 12 + 17 = 29; 6B: 18 + 10 = 28; 6C: 14 + 13 = 27; 6D: 11 + 19 = 30. Since 30 is the greatest total, 6D bought the most balloons.