allocate In Order
Returns a map of how many units to allocate to each resource. If a resource is not in the returned map, then it will not have any units allocated.
Parameters
amount Needed
must be greater than 0
resource List
the list to consider. All resources must have available unit and the total amount available within the list must be greater than or equal to the amount needed