Presumably, your second formula is in L3. **You can just put that formula in your first formula wherever you see L3, and confirm it with Control+Shift+Enter**. You can switch the formula to a non-array formula by using something like this as your second formula:

=LOOKUP(2,1/(($Q$3:$Q$138=A3)*($R$3:$R$138=B3)),ROW($Q$3:$Q$138)-ROW($Q$3)+1)

**However, I don't recommend this course of action! ** Either version of the second formula is a pretty intensive calculation, you don't want to force the first formula to calculate it 10 times. That's the whole point of helper cells, to calculate some things to make other formulas simpler.

Incidentally, you can shorten your first formula by changing it to an array formula:

=MIN(IF(G3*INDEX($S$3:$W$138,L3,0)%>E3+INDEX($X$3:$AB$138,L3,0),G3*INDEX($S$3:$W$138,L3,0)%,E3+INDEX($X$3:$AB$138,L3,0)))

with Control+Shift+Enter. This uses some nice properties of INDEX, along with the design of your sheet.