The task is to generate the correct answer for a given math problem.

Problem: in a sports club with 30 members , 17 play badminton and 19 play tennis and 3 do not play either . how many members play both badminton and tennis ?
9