We have two batteries connected in series. Each battery has emf E=10 V, but their internal resistances are different: the first has r1=20 Ω and the second has r2=5 Ω. Because they are in series, the total emf and the total internal resistance are obtained by simple addition:
Etotal=E+E=10+10=20 V
rtotal=r1+r2=20 Ω+5 Ω=25 Ω
The external circuit consists of two resistors, 30 Ω and x Ω, connected in parallel. Their equivalent resistance is
Req=30+x30xΩ
We are told that the potential difference across the battery whose internal resistance is 20 Ω is zero. The terminal voltage across any battery is given by the formula
Vterminal=E−Ir
Setting this equal to zero for the battery with r=20 Ω, we get
0=10 V−I(20 Ω)
I(20 Ω)=10 V
I=2010=0.5 A
Thus, the current flowing through the entire series circuit must be exactly 0.5 A.
Now we apply Ohm’s law to the complete circuit (emf in series with all resistances in the loop):
Etotal=I(rtotal+Req)
Substituting the known values,
20 V=0.5 A(25 Ω+Req)
Dividing both sides by 0.5 A,
0.5 A20 V=25 Ω+Req
40 Ω=25 Ω+Req
Req=40 Ω−25 Ω=15 Ω
But Req is also equal to 30+x30x, so we write
30+x30x=15
Cross-multiplying gives
30x=15(30+x)
30x=450+15x
30x−15x=450
15x=450
x=15450=30 Ω
So, the answer is 30 Ω.