Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: 18 business executives and 7 chairmen meet at a conference . if each business executive shakes the hand of every other business executive and every chairman once , and each chairman shakes the hand of each of the business executives but not the other chairmen , how many handshakes would take place ?
Output:
279