constructing money combinations