You will be given a definition of a task first, then some input of the task.
The task is to generate the correct answer for a given math problem.

Problem: a certain high school has 500 students . of these students , 20 are taking music , 20 are taking art , and 10 are taking both music and art . how many students are taking neither music nor art ?
Output:
47