The prime factorization of 10,000 = 5 x 5 x 5 x 2 x 2 x 2 x 1 (using 7 digits).
So the 7 digit possibilities are 5 x 5 x 5 x 2 x 2 x 2 x 1
a) 5 x 5 x 5 x 2 x 2 x 2 x 1
b) 5 x 5 x 5 x 4 x 2 x 1 x 1
c) 5 x 5 x 5 x 8 x 1 x 1 x 1
There are 7! / (3! x 3!) = 140 ways to do part a.
There are 7! / (3! x 2!) = 420 ways to do part b.
There are 7! / (3! x 3!) = 140 ways to do part c.
Adding, there are 700 ways.