The capital to be invested now is =12000/(1+9%/4) 20 = 7689.80 yuan.
If compound interest continues, you need to invest =12000/e (9% * 5) = 7651.54 yuan.