The problem is: $$(a \cdot 100 + b \cdot 10 + c ) \cdot d + (10\cdot e + f ) \cdot g + h \cdot i = 2010$$ and $$\{a, b, c, d, e, f, g, h, i\} = \{1, 2, 3, 4, 5, 6, 7, 8, 9\}.$$(not allowed to repeat).
For example, $$976 \cdot 2 + 38 \cdot 1 + 4 \cdot 5 = 2010$$
I write a program to enumerate all the solutions. But I want to know how to solve it with math.