If he got the jeans for 40% off he paid 60% of the cost for the jeans. With that you can setup an equation.
20 is 60% of what number
is signifies equals and of signifies multiplication
20 = 0.6*x
x = 20/.6
x = 33.33
The regular price of the jeans is $33.33