Hello! Let's pretend that there are 12 cupcakes in a package.
One person walks over to the cupcake package, opens it, and takes one out.
There are 11 left.
Two people come over to the cupcake and take one each.
There are 9 left.
Four people decide to each have a cupcake. They take one each.
There are 5 left.
In total, seven people took a cupcake each and there are now five left. I hope this helps!