A new sports car costs $40,000 and depreciates $3000 per year. Assuming that the rate of depreciation is constant, determine the following:

(i) equation for the depreciation function.
(ii) How much will the car be worth in 5 years?