Tyler gives away 21 / 3 = <<21/3=7>>7 CDs
After giving away a third of his CDs, Tyler has 21 - 7 = <<21-7=14>>14 CDs
After buying new CDs, Tyler has 14 + 8 = <<14+8=22>>22 CDs
#### 22