Let the original price be \( x \). A 20% discount means the seller sold it for 80% of the original price:
\[
0.8x = 4000
\]
Solve for \( x \):
\[
x = \frac{4000}{0.8} = 5000
\]
To find the original price after a discount, divide the selling price by \( 1 - \text{discount percentage} \).