All you need to do is set up simple fractions and cross multiply. the fractions are 8/20 and x/40000 you cross multiply to get 20x=320,000. you finally divide 20 on both sides to get 16000 students.
Hope this helps :)
Please mark my answer as the brainiest if you feel I've given you the best help :)