LibraryQuant puzzles
Ten identical units are to be split among four labelled buckets, call them A, B, C and D. The units are interchangeable, so only the counts matter: giving A three units and B seven is one allocation, and giving A seven and B three is a different one.
For the second question, hand out some units before counting anything. For the ceiling, count the allocations that break it rather than the ones that respect it.
Stop thinking about the units and think about the dividers. An allocation is exactly a choice of where to place the walls in a row of items, which turns a counting problem with no obvious structure into a single binomial coefficient.
You have the question, a hint and the idea. It counts the allocations for each version of the question, with a short check by hand on each count.