We have purchased 60 different types of memory banks, typed as 0 to 59, A bank of type i has 2^i memory capacity. We have $X_i$ memory banks of type i.
We also have n workstations numbered from 1 to n. The $i_th$ workstation needs exactly (no more and no less) $W_i$ memory capacity to work.
Each workstation can use unlimited amount of memory banks, Total memory capacity of this workstation is the sum of capacity of all memory banks it used.
We need to make all workstations work and calculate the total capacity of unused memory banks, can you help us?