A catering service offers 12 appetizers, 9 main courses, and 7 desserts. A customer is to select 10 appetizers, 3 main courses, and 5 desserts for a banquet. In how many ways can this be done?