First place the $A$'s. Since they cannot go in the first five spaces, there are $_{10}C_5$ arrangements.
Then, place the $B$'s. First, we must fill all of the empty spaces left in the last five before filling the others, because the $C$'s cannot go in the last five.
There are $n = 0 ... 5$ empty spaces in the last five to fill. After those are filled, the remaining $B$'s go in the first five spaces, which are all empty now (the $A$'s didn't go there).
We need to count the number of combinations for each case $n = 0 ... 5.$
For $n=0$, all five $B$'s go into the first five.
For $n=1$, one $B$ goes in the empty spot in the last five, and we choose where the other four go in the first five: $_5C_4$.
For $n=2$, two $B$'s go in the empty spots in the last five, and we choose where the remaining three go in the first five spaces: $_5C_3$.
For the other cases, there are $_5C_{5-n}$ choices.
The $C$'s go where's left.
So, the total number of combinations is $$_{10}C_5(_5C_0 + _5C_1 + _5C_2 + _5C_3 + _5C_4 + _5C_5) = 8064.$$