Hello, this is my working. My professor did not give any answer key, and thus can I check if I approach the question correctly, and also check if my answer is correct at the same time.
When t < 0, capacitor acts as open circuit,
$$V(0-) = V(0+) = 9V$$
When t = infinity,
$$V( ∞) = 5V$$ (because...