The key is to focus on the packages and NOT the number of notebooks.
We have 4 colors and 2 sizes, let's say:
Bb, Gg, Yy, Pp
First, let's solve for the same size and same color in the package (again do not think about the number of notebooks but the number of possible packages)
Color can be picked in 4 ways (any of the 4) and the size can be picked in 2 ways. Therefore we have 4*2 = 8 possibilities.
Now the next step, how many packages if the size is the same and the colors are different within a package. The key to note is we still have the same colors and same number of ways to pick a colour, we have to choose 3 colours from 4, 4c3 = 4. We have 2 sizes, so possible packages = 4*2 = 8. Adding the 2 conditions we get 8 + 8 = 16. Hope this helps.