To start, let’s put order the amounts of candy in numerical order
2, 4, 5, 7, 8, 11, 11
Now let’s look at the ranges given
0-3, 3-6, 6-9, 9-12
Now let’s sort how many bags are in each range
There’s one bag between 0-3, so raise the first bar to one
There’s 2 bags between 3-6, so raise the second bar to two.
There’s two more bags between 6-9, so raise the third bar to two
Finally, there’s two bags between 9-12, so raise the last bar to two.