Hello! I'm trying to build a flow that deducts a value from one list to another; essentially acting as an inventory/delivery flow.
The list I have with the value that needs to be deducted is here:

The list with the value that should be the deducted amount is here:

So I need it to recognize the value in the 2nd list in the quantity column, then deduct that value from the quantity in stock column in the first list, once it goes from Pending -> Delivered. How can I make this happen? Thank you!