In Group 1: We can use vertical micro programming since it needs either of 32 signals at a time,so only only one signal is needed to connect to the required gate or register at a time,we can use a 5 to 32 decoder to represent any of the 32 signals,so 5 bits can choose 32 distinct signals.
In Group 2:We need at most 5,i.e we may need none or 1 or 2..or 5 signals at a time so in worst case we need to give signals to five devices.so here 5 bits is required.
Total 5+5=10 bits.
Answer is B)10