Let's assume that the 2 different sizes are Size 1 and Size 2. Size 1 and Size 2 are both available in Blue, Green, Yellow and Pink. (i.e)
1Blue,1Green,1Yellow,1Pink,2Blue,2Green,2Yellow and 2Pink.
We are given that the above are packaged such that there are 3 notepads of same size and color or there are 3 notepads of same size and 3 different colors.
3 notepads of Same Size and color can be package in 8 ways (Say 3 notepads of Size 1 blue, 3 notepads of Size 1 Green ...etc)
3 notepads of same size and 3 different colors can be packaged in 4C3 ways for Size 1([1Blue,1Green,1Yellow],[1Blue,1Yellow,1Pink],[1Green,1Yellow,1Pink],[1Blue,1Green,1Pink])
Similarly it is 4C3 ways for Size 2.
This comes to a total of 8+4C3+4C3 ways = 16