A group of 35 programmers are applying for a job. The number of ap- plicants with competency in C++ is 25, the number with competency in Java is 28, and the number with competency in neither languages is 2. How many applicants have competency in both languages?