An art collector, who owns 10 paintings by famous artists, is preparing her will. In how many different ways can she leave these paintings to her three heirs?

I had work on this problem for a long time but the answer still not match with on that shows on the solution manual. and the correct answer is 59,049. Can you show me how to do it?