Real quick... only 2 ways keep the CD's apart, playing them 2 apart (with one tape in between) or 3 apart (with one in front and one at end with tapes in the center)... i'd do each way separately.
Way 1:
You have to start with a CD, so you have two options at slot 1, CD1, and CD2. You then have only two choices at slot two, either T1 or T2, in order to keep the CD's at either slot 1 or 4. The last two slots are invariable. They have to be the other tape followed by the other CD. When I did it I jotted it down as below...
CD1 T1 T2 CD2 x2
CD1 T2 T1 CD2 x2
The x2's show that for each sequence, you also have to account for the reverse situation, like for the first one you also have to account for CD2 T2 T1 CD1... There are a total of 4 options with the CD's at the 1st and 4th slots... You can also approach it mathematically using the same reasoning as above for each slot... (2*2*1*1)=4
Then you have to deal with the possibity that only one tape separates them... I approached it similarly to the first part... Cept' his time you can start with any of the 4 options, so the first multiplier is a 4... Say you choose CD1, now you only have 2 options for slot 2 though, T1 and T2, so thats a multiplier of 2... Say you chose T1... now the other two have to fall into place, no more choices, the third has to be CD2 and the last T2... no options so all the multipliers are 1's... You write it out mathematically as (4*2*1*1) = 8. Following are those 8 choices (again, to save space I put x2's to denote forwards and backwards)
CD1 T1 CD2 T2 x2
CD1 T2 CD2 T1 x2
CD2 T1 CD1 T2 x2
CD2 T2 CD1 T1 x2
So you take the 4 options from the first way and the 8 options from the second and get 12 possible ways to arrange them... If you get the concept off the bat you can skip to the math pretty quickly and write it out as (2*2*1*1)+(4*2*1*1) =12 and get it in about 30 secs...
Hope this helps... if anyone sees anything I messed up or an easier way lemme know...