Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
You can just use brute force and find out for each language the number of users you need to teach
Note that a user can appear in multiple friendships but you need to teach that user only once