Let the capacities are
C1,C2When they are in parallel, the net capacitance Cp=C1+C2
Thus, energy stored for this combination,
Up=12CpV2
or 0.1=0.5(C1+C2)(22) or C1+C2=0.05...(1)
When they are in series, the net capacitance Cs=C1C2C1+C2
Thus, energy stored for this combination,
Us=12CsV2
or 1.6×10−2=0.5C1C2C1+C2(22)
or C1+C2=125C1C2...(2)
From (1) and (2), C1+(0.05−C1)=125C1(0.05−C1)
or 0.05=6.25C1−125C21
or 1=125C1−2500C21 or 2500C21−125C1+1=0
so, C1=125±√1252−4(2500)(1)2(2500)=125±755000
So, C1=40mJ or 10mJ
Thus, from (1) C2=10mJ or 40mJ