Recently a publishing company which specializes in mathematical books advertised the job opening of an assistant editor. The response was good. One hundred people applied for the position. The company, however, wanted to make their selection from the applicants who had some training in both mathematics and literature. Of the one hundred applicants the company found that ten of them had had no training in mathematics and no training in literature. Seventy of them had had some mathematical training and 82 had had some in literature. How many applicants had had training in both mathematics and literature?