The general exponential decay function is:
where x and y are the variables, a is the initial value and r is the decay rate (as a decimal).
In the formula:
c(w) is the cost after w weeks (in dollars), $100 is the initial value and
1 - r = 0.9
1 = 0.9 + r
1 - 0.9 = r
0.1 = r
r as a percentage is 0.1x100 = 10%. Then, the price starts at 100 dollars and decrease by 10% off each week until they are sold.