CAT>RAT
CAT-AT>RAT-AT
C>R
R=1: C={2,3,4,5,6,7,8,9}
R=2: C={3,4,5,6,7,8,9}
...
R=7: C={8,9}
R=8: C=9
S=8+7+...+2+1=8*(1+8)/2=36
ответ: 36
CAT>RAT
CAT-AT>RAT-AT
C>R
R=1: C={2,3,4,5,6,7,8,9}
R=2: C={3,4,5,6,7,8,9}
...
R=7: C={8,9}
R=8: C=9
S=8+7+...+2+1=8*(1+8)/2=36
ответ: 36