A bakery sells a variety of pastries, and during a special promotion, they offer a discount on certain items. If the total amount spent by a customer on pastries is $120 after a 20% discount, how much would the customer have paid before the discount was applied?
Let the original price be denoted as $P$. According to the problem, after applying a discount of 20%, the amount spent is $120. We can express this relationship with the formula:
$$P - 0.20P = 120$$
Can you calculate the original price, $P$?