Math question that I need help with please

Answer:
The answer is C jazz, opera and rock 12+10+18 = 40
Step-by-step explanation: