The answer should be the total number of ways that a committee can be formed, minus the number of ways a committee could be formed that has all three of X, Y, and Z.
The number of ways a committee can be formed is clearly 15 choose 6. If X, Y, and Z are all in the committee, then the rest of the committee is determined by which three out of the 12 remaining are chosen, so the number of committees that have X, Y, and Z is 12 choose 3. So our answer is ${15 \choose 6} - {12 \choose 3} = 4785$.