Given: Magnetic field energy =16 J, Thermal power dissipated =32 W, Irms=2 A, f=50 Hz.
From energy stored in inductor:
21LIrms2=16
21⋅L⋅4=16
L=8 H
From thermal power dissipated:
Irms2R=32
4R=32
R=8Ω
Inductive reactance:
XL=ωL=2πfL=2×3.14×50×8=2512Ω
RXL=82512=314