In an L-C-R circuit, the impedance \( Z \) is given by:
\[
Z = \sqrt{R^2 + (X_L - X_C)^2}
\]
Where:
- \( R = 5 \, \Omega \)
- \( X_L = 20 \, \Omega \)
- \( X_C = 20 \, \Omega \)
Since \( X_L = X_C \), the total reactance becomes 0:
\[
Z = \sqrt{R^2} = \sqrt{5^2} = 5 \, \Omega
\]
Thus, the correct answer is 5 ohms.