Charcoal, 3939 30 bytes
I⌊EΦEX²⊕LθΦ⍘ι12μ⁼ΣιLθΣEι×Iλ§θμ
Try it online! Link is to verbose version of code. Explanation:
² Literal 2
X Raised to power
θ Input array
L Length
⊕ Incremented
E Map over implicit range
ι Current index
⍘ Convert to string
12 Using digits `12`
Φ μ Remove leading digit
Φ Filter strings where
ι Current string
Σ Digital sum
⁼ Equal to
θ Input array
L Length
E Map over strings
ι Current string
E Map over characters
λ Current character
I Cast to integer
× Multiplied by
θ Input array
§ Indexed by
μ Current index
Σ Take the sum
⌊ Take the minimum
I Cast to string
Implicitly print
Previous less brute-forcey 39-byte version: