The wording here threw me off.
The answer given is $8 \times 7 \times 6 \times 5 \times 4$.
This suggests that "repeated once" means only used once. I interpreted "repeated once" to mean a digit $2,...,9$ can be used either once or twice (at most). Suppose I instead wish to answer the question that I interpreted it as. That is, I can use each digit once or twice but not more than twice.
I split this into 3 cases. The first is where no digit is repeated. The number of ways we can get this is $8 \cdot7 \cdot6 \cdot5 \cdot4 $.
Now suppose we have one repeat then we have $\left[\binom{5}{2} \cdot 8\right] \cdot 7 \cdot 6 \cdot 5$ ways. That is, we can choose two slots out of five to put the first digit in.
Now suppose we have two repeats then we have $\left[\binom{5}{2} \cdot 8\right] \cdot \left[\binom{3}{2} \cdot 7\right]\cdot 6$. That is, we can choose two slots out of five to put the first digit in. Then we have to choose two of the remaining three slots to put the next digit in.
In summing the cases we get the result. Am I correct?