Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: in the class of 40 students , 30 speak hindi and 20 speak english . what is the lowest possible number of students who speak both the languages ?
Output:
10