question is find total number of sequence of digits $9$ with digits from set $[0,1,2]$ which either begins or end with $210$
- digits begin with 210 are $3^6$
- digit end with $210$ are $3^6$
- in both cases there is extra counting of same nunbers likw 210 _ _ _ 210 which are $3^3$ so i have to subtract from 1 and 2 above
somehow answer does not match
help thanks