Calculating Z_T (total impedance)
When there is an inductor impedance and a resistor impedance in series the total value of the impedance is: -

\$Z_{total} = \sqrt{R^2 + X_L^2}\$

Where, in your example R = 10 ohms and XL is 30 ohms (reactive) making the total impedance 31.623 ohms