Coins, Packages, Etc.

 The general coin, package problem:
We have items (coins, packages) of two or more types. Each type has a value. We need to express both the numbers of each type and the value of the collection.