A new car worth $\$ 24,000$ is depreciating in value by $\$ 3000$ per year.
a. Write a formula that models the car's value, $y,$ in dollars, after $x$ years.
b. Use the formula from part (a) to determine after how many years the car's value will be $\$ 9000$ .