Case 1: Cells in series
For series combination, the net emf is the algebraic sum Es=E1+E2=1+2=3V
The net internal resistance is the arithmetic sum rs=r1+r2=2+1=3Ω
Total resistance in the external circuit is Rtot=rs+R=3+6=9Ω
Hence the current in the series circuit is
I1=RtotEs=93=31A
Case 2: Cells in parallel
For two unequal cells in parallel, use the general formulae:
Equivalent internal resistance: rp1=r11+r21
Equivalent emf: Ep=r11+r21r1E1+r2E2
Compute rp: rp1=21+11=0.5+1=1.5
rp=1.51=32Ω
Compute Ep: Ep=1.521+12=1.50.5+2=1.52.5=35V
Total resistance now is Rtot=R+rp=6+32=320Ω
Therefore the current in the parallel configuration is
I2=RtotEp=32035=205=41A
Required ratio
I2I1=4131=31×4=34
The problem states I2I1=3x, so x=4.
Hence, the value of x is 4.