There are 50 students in a class. Some can speak only English and some can speak only Hindi. Ten students can speak both Hindi and English. If the number of students who can speak English is 21, then how many students can speak only Hindi, and how many students can speak only English ?