the selected list of resources. It may be empty
the amount needed from resources
of resources to consider selecting from