Commented 5 Years ago through Puzzles
For each material match the first request with the first supply
and provide the left overs of the operation and indicate what is the
next request and supply pair that need to be procedes.
Repeat the previous step until no match for request,supply pair