A total of $22,000 is to be​ invested, some in bonds and some in certificates of deposit​ (CDs). If the amount invested in bonds is to exceed that in CDs by $9,000, how much will be invested in each type of​ investment?