A dress cost $1600 after 20% discount was given.What was the price of the dress before the discount.

0.8x = 1600

Solve for x.