Function to determine how to allocate requirement for units across a list of resources that have sufficient available units to meet the amount needed.
The method assumes that the provided list of resources has enough units available to satisfy the needs of the request.