A library has 142 CDs on its shelves. There are 11 shelves that have 8 CDs on each shelf. The rest of the shelves have 6 CDs on each shelf. How many shelves have 6 CDs?