Today, everything at a store is on sale. The store offers a 20% discount.

If the regular price of an item is x dollars, what is the discount price in x dollars?
The discount price of a hat is $18. What is the regular price?

Let's assume the regular price of the hat is y dollars.

According to the information given, the store offers a 20% discount, so the discount amount is 0.2y.
Therefore, the discount price is y - 0.2y = 0.8y.
Given that the discount price of the hat is $18, we have the equation 0.8y = 18.
Dividing both sides of the equation by 0.8 gives us y = 18/0.8 = $<<18/0.8=22.5>>22.5.
Therefore, the regular price of the hat is $22.5.