Current flowing through R4 (and the R3-R4 series branch): I34=R4V4=5005=0.01 A
Total voltage drop across the upper branch (R3+R4): V34=I34(R3+R4)=0.01(100+500)=0.01×600=6 V
Since the branch (R3+R4) is in parallel with R2, the voltage across this parallel network is:
Vparallel=V34=6 V
Voltage drop across R1 using Kirchhoff's Voltage Law: V1=V−Vparallel=18−6=12 V
Total circuit current passing through R1: Itotal=R1V1=40012=0.03 A
Current flowing through R2: I2=Itotal−I34=0.03−0.01=0.02 A
Calculating the value of R2: R2=I2Vparallel=0.026=300 Ω