In how many ways can 12 balls of different colors be put into 3 separate trays, if the first tray must contain 3 balls, the second tray 4 balls, and the third tray 5 balls?