Answer: The original price of the shorts was $25.
Explanation:
Let the original price of the shorts be x
Reduced price = 20%
New price will be

Rate of sales tax = 5%
So, Amount of tax will be given by

Amount after tax will become

According to question, it becomes,

Hence, the original price of the shorts was $25.