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